/* ─────────────────────────────────────────────────────────────
   NextAI — Modern tech landing page
   Inspired by Linear / Supabase: dark hero, light sections,
   generous whitespace, subtle gradients.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --bg-dark:     #0b1120;
  --bg-darker:   #060912;

  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-soft:   #94a3b8;
  --text-on-dark: #f1f5f9;

  --primary:     #4f46e5;       /* indigo */
  --primary-hover: #4338ca;
  --accent:      #f59e0b;       /* amber */

  --green:       #10b981;
  --red:         #ef4444;
  --blue:        #3b82f6;

  --border:      #e2e8f0;
  --border-dark: #1e293b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);

  --radius:    12px;
  --radius-lg: 20px;

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ─────────── HEADER ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav {
    gap: 18px;
  }
  .nav a {
    font-size: 13px;
  }
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  padding: 96px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.badge-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--bg-darker);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-disabled {
  background: var(--bg-soft);
  color: var(--text-soft);
  border-color: var(--border);
  cursor: not-allowed;
  user-select: none;
}

.btn-disabled:hover {
  background: var(--bg-soft);
  color: var(--text-soft);
  transform: none;
  box-shadow: none;
}

/* ─────────── SECTION COMMON ─────────── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-detail {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section .lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─────────── PRODUCTS GRID ─────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  color: var(--text);
}

.product-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.product-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.product-card.coming-soon {
  cursor: default;
}

.product-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.icon-red    { background: #fef2f2; }
.icon-blue   { background: #eff6ff; }
.icon-amber  { background: #fffbeb; }
.icon-green  { background: #ecfdf5; }
.icon-purple { background: #f5f3ff; }

.status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.status-live {
  background: #d1fae5;
  color: #065f46;
}

.status-soon {
  background: #fef3c7;
  color: #92400e;
}

.status-future {
  background: #e0e7ff;
  color: #3730a3;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  font-size: 12px;
  color: var(--text-soft);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.card-cta.muted {
  color: var(--text-soft);
}

/* ─────────── FEATURED CARD (HKD Pro hero card) ─────────── */
.featured-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  color: var(--text);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  color: var(--text);
}

.featured-card-left {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 4px;
}

.featured-card-left .status-live {
  align-self: flex-start;
}

.featured-card-left h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.featured-card-left p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
}

.featured-card .card-cta {
  margin-top: 8px;
}

.featured-card-right {
  background: linear-gradient(135deg, #fafbff 0%, #f1f5ff 100%);
  padding: 40px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-row strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  min-width: 56px;
}

.stat-row span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 800px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-right { border-left: none; border-top: 1px solid var(--border); }
  .featured-card-left { padding: 28px; }
  .featured-card-right { padding: 28px; }
  .featured-card-left h3 { font-size: 26px; }
}

/* ─────────── SUITE GRID (4 coming-soon apps) ─────────── */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) { .suite-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .suite-grid { grid-template-columns: 1fr; } }

.suite-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.suite-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.suite-card .card-top {
  margin-bottom: 16px;
}

.suite-card .product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
}

.suite-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.suite-card .card-desc {
  font-size: 13px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.suite-card .card-meta {
  font-size: 11px;
  margin-bottom: 0;
  padding-top: 12px;
}

/* ─────────── NEXTAI LAB ─────────── */
.section-lab {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) { .lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lab-grid { grid-template-columns: 1fr; } }

.lab-card {
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
}

.lab-card:hover {
  border-style: solid;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.lab-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.lab-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lab-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.lab-cta {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─────────── HKD PRO DETAIL ─────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .features-grid { grid-template-columns: 1fr; } }

.feature {
  background: white;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing */
.pricing-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.pricing-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-note {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 14px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 800px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.pricing-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.pricing-card.highlight {
  background: white;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-fm {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius);
  font-size: 14px;
  color: #78350f;
}

.ctas-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────── ABOUT ─────────── */
.section-about {
  text-align: center;
}

.section-about p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 40px;
  text-align: left;
}

.founder-avatar {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.founder-name {
  font-weight: 700;
  font-size: 15px;
}

.founder-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.founder-bio {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─────────── CONTACT ─────────── */
.section-contact {
  text-align: center;
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: white;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-card a {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─────────── FOOTER ─────────── */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand .logo-mark {
  background: white;
  color: var(--bg-dark);
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: white;
}

.footer-col a .muted {
  color: var(--text-soft);
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 24px 0;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}

/* ─────────── RESPONSIVE FINE-TUNES ─────────── */
@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 80px; }
  .pricing-box { padding: 24px; }
  .ctas-row { flex-direction: column; }
  .ctas-row .btn { width: 100%; }
}
