*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0E14;
  --bg2:       #0d1117;
  --card:      #161b22;
  --card2:     #1c2333;
  --border:    #21262d;
  --blue:      #3B7FF5;
  --blue-dark: #2563EB;
  --purple:    #8B5CF6;
  --green:     #34D399;
  --text:      #F8FAFC;
  --text2:     #94A3B8;
  --text3:     #64748B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(10,14,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-text { font-weight: 700; font-size: 15px; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* PAGE WRAPPER */
.page-content { padding-top: 64px; }

/* HERO */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(59,127,245,0.12) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; justify-content: center; }
.stat { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--text3); margin-top: 4px; }

/* PRODUCT HERO */
.product-hero {
  padding: 100px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, var(--hero-glow, rgba(59,127,245,0.1)) 0%, transparent 70%);
  pointer-events: none;
}
.product-icon-large {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  margin: 0 auto 24px;
}
.product-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.product-hero .tagline { font-size: 18px; color: var(--text2); max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--text3); background: var(--card); }

.btn-disabled {
  background: var(--card2);
  color: var(--text3);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--border);
  cursor: not-allowed;
  display: inline-flex; align-items: center; gap: 8px;
}

/* SECTIONS */
section { padding: 80px 5%; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--text2); max-width: 520px; line-height: 1.7; }
.section-header { margin-bottom: 48px; }
.bg2 { background: var(--bg2); }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.feature-card .f-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* PRODUCTS GRID */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--blue));
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover { border-color: rgba(59,127,245,0.3); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.product-card:hover::before { opacity: 1; }
.product-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; }
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--text2); line-height: 1.6; flex: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); color: var(--text3); }
.tag.live { border-color: rgba(52,211,153,0.3); color: var(--green); background: rgba(52,211,153,0.08); }
.tag.beta { border-color: rgba(59,127,245,0.3); color: var(--blue); background: rgba(59,127,245,0.08); }
.tag.coming-soon { border-color: rgba(139,92,246,0.3); color: var(--purple); background: rgba(139,92,246,0.08); }
.group-label { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 24px; }
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.product-group { margin-bottom: 56px; }

/* CONTACT FORM */
.contact-form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text3); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { width: 100%; justify-content: center; font-size: 16px; padding: 16px; }

/* PRIVACY */
.privacy-content { max-width: 760px; margin: 0 auto; }
.privacy-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.privacy-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--text2); }
.privacy-content p, .privacy-content li { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 12px; }
.privacy-content ul { padding-left: 24px; }
.privacy-content a { color: var(--blue); }

/* FOOTER */
footer {
  padding: 48px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text2); }
.footer-copy { color: var(--text3); font-size: 13px; }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* TABS (for product pages with privacy/contact) */
.page-tabs { display: flex; gap: 4px; background: var(--card); border-radius: 10px; padding: 4px; max-width: fit-content; margin: 0 auto 48px; }
.page-tab { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text3); border: none; background: none; transition: all 0.2s; }
.page-tab.active { background: var(--blue); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* LANGUAGE SWITCHER */
.lang-switcher select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.lang-switcher select:hover { border-color: var(--blue); color: var(--text); }
.lang-switcher select option { background: #161b22; color: #F8FAFC; }
#google_translate_element { display: none !important; }
.goog-te-banner-frame { display: none !important; }
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 60px 24px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .hero-stats { gap: 32px; }
  .page-tabs { flex-wrap: wrap; }
}
