@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --ink: #0a0f1e;
  --ink-soft: #2d3452;
  --ink-muted: #6b7280;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef0f8;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  --teal-faint: #f0fdfa;
  --blue: #1e40af;
  --blue-light: #3b82f6;
  --accent: #f59e0b;
  --danger: #ef4444;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--ink);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-primary {
  background: var(--teal); color: white;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: 10px; }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-faint); }
.btn-white {
  background: white; color: var(--teal);
  font-weight: 600;
}
.btn-white:hover { background: var(--teal-faint); box-shadow: var(--shadow); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 99; padding: 32px 24px;
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem; font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid var(--border); color: var(--ink-soft);
}
.mobile-menu a:hover { color: var(--teal); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-faint); color: var(--teal-dark);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
  border: 1px solid rgba(13,148,136,0.2);
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 12px 0; }
.section-header p { font-size: 1.1rem; color: var(--ink-muted); max-width: 560px; margin: 0 auto; }

/* ── HERO ── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f7f8fc 0%, #eef8f7 50%, #f7f8fc 100%);
  overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-label { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 24px; color: var(--ink);
}
.hero h1 span { color: var(--teal); }
.hero p {
  font-size: 1.15rem; color: var(--ink-soft);
  margin-bottom: 36px; max-width: 480px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.8rem; color: var(--ink-muted); font-weight: 500;
}
.hero-trust-divider { width: 1px; height: 16px; background: var(--border-strong); }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.hero-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: white; border-radius: 12px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
}
.hero-img-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── LOGOS ── */
.logos-bar { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.logos-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.logos-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.integration-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--border); background: white;
  font-size: 0.875rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.integration-badge .dot-hs { width: 10px; height: 10px; border-radius: 50%; background: #ff7a59; }
.integration-badge .dot-zd { width: 10px; height: 10px; border-radius: 50%; background: #03363d; }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--teal-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-faint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.65; }

/* ── FEATURE ROWS (features page) ── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-row-img img { width: 100%; height: 320px; object-fit: cover; }
.feature-row-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 12px 0 16px; }
.feature-row-content p { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 24px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--ink-soft);
}
.check-list li::before {
  content: '✓'; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-faint); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  text-align: center; padding: 36px 24px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-card .number {
  font-family: 'Syne', sans-serif; font-size: 2.5rem;
  font-weight: 800; color: var(--teal); margin-bottom: 8px;
}
.stat-card .label { font-size: 0.875rem; color: var(--ink-muted); }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.plan-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; transition: all 0.3s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.popular {
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.08);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
  white-space: nowrap;
}
.plan-name { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.plan-price { margin-bottom: 6px; }
.plan-price .amount { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; }
.plan-price .period { font-size: 0.875rem; color: var(--ink-muted); }
.plan-desc { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.plan-features li .icon { color: var(--teal); font-weight: 700; flex-shrink: 0; }
.plan-cta { display: block; text-align: center; }

/* ── TESTIMONIAL ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.testimonial-stars { color: var(--accent); font-size: 0.875rem; margin-bottom: 16px; }
.testimonial-text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; }
.testimonial-role { font-size: 0.75rem; color: var(--ink-muted); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-radius: var(--radius-lg); padding: 72px 64px;
  text-align: center; color: white; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
}
.cta-banner h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.cta-banner p { font-size: 1.05rem; opacity: 0.75; margin-bottom: 36px; }
.cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-content h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 12px 0 20px; }
.about-content p { font-size: 1rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; }
.about-meta { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.about-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.about-meta-item strong { color: var(--ink); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.form-group input, .form-group textarea {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.9rem; color: var(--ink);
  background: var(--surface-2); transition: border-color 0.2s;
  outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--teal); background: white;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-group textarea { min-height: 140px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 8px; }
.contact-info-img img { width: 100%; height: 220px; object-fit: cover; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-faint); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-content { font-size: 0.875rem; }
.contact-item-content strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.contact-item-content a, .contact-item-content span { color: var(--ink-muted); }
.contact-item-content a:hover { color: var(--teal); }

/* ── FOOTER ── */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-wrap {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1rem; color: white; margin-bottom: 16px;
}
.footer-brand .logo-wrap img { height: 32px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; display: flex;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all 0.2s;
}
.social-link:hover { background: var(--teal); border-color: var(--teal); color: white; }

/* ── LEGAL ── */
.legal-content { max-width: 800px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 8px; }
.legal-content .updated { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 48px; }
.legal-content h2 { font-size: 1.25rem; margin: 40px 0 12px; color: var(--ink); }
.legal-content p, .legal-content li { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 120px 0 64px;
  background: linear-gradient(135deg, #f7f8fc 0%, #eef8f7 100%);
  text-align: center; border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 16px; }
.page-hero p { font-size: 1.1rem; color: var(--ink-muted); max-width: 560px; margin: 0 auto; }

/* ── SUCCESS STATE ── */
.success-img-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.success-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ── ALERT ── */
.alert {
  padding: 16px 20px; border-radius: 8px; font-size: 0.875rem;
  display: none;
}
.alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; display: block; }
.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 110px 0 60px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; direction: ltr !important; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 28px; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .success-img-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Fix for logos on dark backgrounds */
footer img[alt="NKStudio"],
.logo-wrap img,
.nav-logo img {
  background-color: #0f172a;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* Fix stretched fonts on pricing */
.pricing-card h3,
.price-amount {
  font-family: 'Syne', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: normal;
  font-stretch: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.price-amount {
  font-size: 3rem;
  line-height: 1.2;
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
}

/* Fix pricing font - use DM Sans instead of Syne to avoid stretched look */
.plan-card .price-amount,
.price-amount {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-stretch: normal !important;
}

.plan-card h3,
.plan-name {
  font-family: 'DM Sans', sans-serif !important;
}

/* Fix pricing numbers - prevent stretching */
.price-amount {
  font-family: 'DM Sans', monospace !important;
  font-weight: 700 !important;
  font-size: 3rem !important;
  letter-spacing: normal !important;
  font-stretch: normal !important;
  font-variation-settings: normal !important;
  display: inline-block;
}

.plan-price {
  margin: 20px 0;
}

.period {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

/* Force normal text rendering on all pricing elements */
.plan-card,
.plan-card * {
  text-rendering: optimizeSpeed !important;
  -webkit-font-smoothing: antialiased;
  font-stretch: normal !important;
  font-optical-sizing: auto !important;
}

.amount {
  font-family: 'DM Sans', monospace;
  font-weight: 700;
}
