/* ============================================================
   Base & Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary-dark:   #0F172A;
  --primary-blue:   #2563EB;
  --accent:         #3B82F6;
  --accent-light:   #60A5FA;
  --purple:         #7C3AED;
  --purple-light:   #A78BFA;
  --light-bg:       #F8FAFC;
  --text-dark:      #1E293B;
  --text-mid:       #475569;
  --text-light:     #64748B;
  --white:          #FFFFFF;
  --border:         rgba(255,255,255,0.08);
  --border-light:   #E2E8F0;
  --nav-height:     72px;
  --section-py:     100px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-arrow { font-size: 1rem; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   Section Helpers
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-subtitle {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 60%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card:nth-child(2) { transition-delay: 0.12s; }
.contact-card:nth-child(2) { transition-delay: 0.1s; }
.contact-card:nth-child(3) { transition-delay: 0.2s; }
.value-item:nth-child(2)   { transition-delay: 0.08s; }
.value-item:nth-child(3)   { transition-delay: 0.16s; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: #0F172A;
  transition: box-shadow 0.3s;
}
.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.35s ease;
  padding-bottom: 3px;
}

/* animated underline — exclude Contact */
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #E84057, #3B82F6, #B8D0CC);
  transition: width 0.35s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:not(.nav-cta):hover {
  color: var(--white);
}

/* scrolled state: gradient text + glowing underline always on */
.nav-scrolled .nav-links a:not(.nav-cta) {
  background: linear-gradient(90deg, #60A5FA, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(96,165,250,0.5));
}
.nav-scrolled .nav-links a:not(.nav-cta)::after {
  width: 100%;
  background: linear-gradient(90deg, #60A5FA, #C084FC);
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
  animation: shimmer 2.5s linear infinite;
  background-size: 200% 100%;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.nav-cta {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  padding-bottom: 8px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
  align-self: center;
}
.nav-cta:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563EB 0%, transparent 70%);
  top: -200px; left: -150px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  bottom: -100px; right: 10%;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #0EA5E9 0%, transparent 70%);
  top: 30%; right: 20%;
  opacity: 0.3;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 32px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { padding-right: 0; }
.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   About Section
   ============================================================ */
.about {
  padding: var(--section-py) 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 18px;
}
.about-body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 40px;
}
.about-values { display: flex; flex-direction: column; gap: 24px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.value-icon {
  width: 38px; height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 0.8rem;
  margin-top: 2px;
}
.value-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.value-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}
.about-visual {
  position: relative;
  height: 380px;
}
.visual-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.visual-icon { font-size: 1.6rem; }
.visual-card-1 { top: 20px; left: 0; }
.visual-card-2 { top: 50%; left: 50%; transform: translateY(-50%); }
.visual-card-3 { bottom: 20px; left: 20px; }
.visual-bg-shape {
  position: absolute;
  inset: 30px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.06));
  border-radius: 24px;
  border: 1px solid rgba(37,99,235,0.1);
  z-index: -1;
}

/* ============================================================
   Products Section
   ============================================================ */
.products {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--light-bg);
  overflow: hidden;
}
.products-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.products-orb {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.product-card-featured {
  background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 100%);
  border-color: rgba(124,58,237,0.3);
}
.product-card-inner {
  padding: 36px;
  position: relative;
  z-index: 2;
}
.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-icon-blue {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(59,130,246,0.1));
  border: 1px solid rgba(37,99,235,0.2);
  color: var(--primary-blue);
}
.product-icon-purple {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(167,139,250,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-light);
}
.product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.badge-soon {
  background: rgba(37,99,235,0.1);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.2);
}
.product-card-featured .badge-soon {
  background: rgba(167,139,250,0.15);
  color: var(--purple-light);
  border-color: rgba(167,139,250,0.25);
}
.product-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.product-card-featured .product-name { color: var(--white); }
.product-desc {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 24px;
}
.product-card-featured .product-desc { color: rgba(255,255,255,0.6); }
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.feature-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--light-bg);
  color: var(--text-mid);
  border: 1px solid var(--border-light);
}
.product-card-featured .feature-tag {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.1);
}
.product-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}
.product-card-featured .product-footer { border-color: rgba(255,255,255,0.08); }
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
}
.product-card-featured .product-status { color: rgba(255,255,255,0.45); }
.status-dot {
  width: 8px; height: 8px;
  background: #F59E0B;
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}
.product-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.product-card:hover .product-glow { opacity: 1; }
.product-glow-blue {
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.07) 0%, transparent 60%);
}
.product-glow-purple {
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 60%);
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
  padding: var(--section-py) 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--light-bg);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.07);
  border-color: rgba(37,99,235,0.2);
}
.contact-card-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(59,130,246,0.05));
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}
.contact-card-content h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.contact-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-blue);
  transition: color 0.2s;
  word-break: break-all;
}
.contact-link:hover { color: var(--accent); }
.contact-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}
.contact-cta {
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--primary-dark);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
}
.footer-links-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links-col a, .footer-links-col span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}
.footer-email a {
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
  font-size: 0.85rem;
}
.footer-email a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-py: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { height: 280px; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .hero-stats {
    gap: 0;
    padding: 16px 20px;
  }
  .stat { padding: 0 16px; }
}

@media (max-width: 640px) {
  :root { --section-py: 64px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
  }
  .nav-cta {
    margin: 8px 28px 0;
    text-align: center;
    border-radius: 8px;
  }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    width: 100%;
  }
  .stat-divider { width: 100%; height: 1px; }
  .stat { padding: 0; flex-direction: row; justify-content: space-between; width: 100%; }
  .stat-number { font-size: 1.3rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .about-visual { height: 240px; }
  .visual-card-2 { left: 30%; }
  .product-card-inner { padding: 24px; }
}
