/* Combinetic v2 design system - Apple-like minimal aesthetic */
/* Tokens */
:root {
  /* Light Apple-like palette */
  --bg: #ffffff;
  --surface-0: #ffffff;         /* page */
  --surface-1: #f6f7f9;         /* section background */
  --surface-2: #ffffff;         /* cards */
  --surface-3: #ffffff;         /* inputs, modals */

  --text-strong: #0b1222;       /* high-emphasis */
  --text: #2b3345;              /* body */
  --text-muted: #6b7280;        /* meta */

  --accent: #2563eb;            /* brand accent (adjust as needed) */
  --accent-strong: #1d4ed8;

  --border-weak: rgba(2, 6, 23, 0.08);
  --container: 1200px;
}

/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container { min-width: 0; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface-1); border-top: 1px solid var(--border-weak); }

/* Typography */
h1, h2, h3, h4 { margin: 0 0 12px; color: var(--text-strong); letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: 18px; color: var(--text); }
.text-muted { color: var(--text-muted); }
/* Remove default underlines for links; use hover state color instead */
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; color: var(--text-strong); }

/* a11y */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 14px 18px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background 200ms ease, box-shadow 200ms ease, transform 160ms ease; letter-spacing: -0.01em; line-height: 1.1; }
.btn i { font-size: 1.05em; }
/* Primary: soft gradient, soft shadow, subtle lift on hover */
.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 20%, transparent);
}
.btn-primary:hover {
  filter: saturate(1.03) brightness(1.02);
  transform: translateY(-0.5px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 22%, transparent);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
/* Ghost: soft surface with subtle hover */
.btn-ghost { color: var(--text-strong); background: color-mix(in srgb, var(--surface-2) 70%, transparent); border-color: var(--border-weak); }
.btn-ghost:hover { background: color-mix(in srgb, var(--surface-2) 92%, transparent); box-shadow: 0 6px 18px rgba(2,6,23,.06); transform: translateY(-1px); color: var(--text-strong); }
.btn-ghost-two { color: var(--text-strong); background: color-mix(in srgb, var(--surface-3) 70%, transparent); border-color: var(--border-weak); }
.btn-ghost-two:hover { background: color-mix(in srgb, var(--surface-2) 92%, transparent); box-shadow: 0 6px 18px rgba(2,6,23,.06); transform: translateY(-1px); color: var(--text-strong); }

/* Header */
.header-upper { position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(180%) blur(16px); background: color-mix(in srgb, var(--surface-0) 60%, transparent); border-bottom: 1px solid var(--border-weak); }
.header-upper { position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(180%) blur(10px); background: color-mix(in srgb, #ffffff 85%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-outer .navigation { display: flex; gap: 16px; padding: 0; margin: 0; }
.nav-outer .navigation li { list-style: none; }
.nav-outer .navigation a { color: var(--text); padding: 8px 10px; border-radius: 10px; font-weight: 600; letter-spacing: -0.01em; }
.nav-outer .navigation a:hover { color: var(--text-strong); background: color-mix(in srgb, var(--surface-2) 30%, transparent); }

/* Hero */
.home-hero { position: relative; min-height: clamp(520px, 70vh, 720px); display: grid; place-items: center; overflow: hidden; }
.home-hero { position: relative; min-height: clamp(520px, 70vh, 720px); display: grid; place-items: center; overflow: hidden; background:
  radial-gradient(1200px 600px at 20% -10%, rgba(37,99,235,0.10), transparent),
  radial-gradient(800px 400px at 80% 10%, rgba(37,99,235,0.07), transparent),
  linear-gradient(180deg, #ffffff, #f6f7f9 60%, #ffffff);
}
.home-hero .demo-link { margin-top: 18px; }
.home-hero .demo-link a { color: #2a62ff; text-decoration: none; font-weight: 500; }
.home-hero .demo-link a:hover { text-decoration: underline; }
/* hero buttons */
.home-hero .btn.btn-secondary { background: #eef3ff; color: #0b1222; border-radius: 12px; padding: 12px 18px; font-weight: 600; box-shadow: 0 1px 0 rgba(0,0,0,0.08) inset; }
.home-hero .btn.btn-secondary:hover { filter: brightness(0.98); }
.home-hero::after { /* ultra subtle noise for texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity=".35"/></svg>');
  mix-blend-mode: multiply;
}
.home-hero .video-container { display: none !important; }
.home-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,255,255,.6)); pointer-events: none; }
.home-hero .aurora-wrap { position: absolute; inset: -20% -10%; pointer-events:none; contain: content; will-change: transform; transform: translate(
  calc(var(--tx, 0px) + var(--idleX, 0px)),
  calc(var(--ty, 0px) + var(--idleY, 0px))
) rotate(var(--ir, 0deg)) scale(var(--ts, 1)) scale(var(--is, 1)); }
.home-hero .aurora-inner { position:absolute; inset:0; background:
  radial-gradient(40% 35% at 20% 30%, rgba(99,102,241,.38), transparent 60%),
  radial-gradient(30% 35% at 70% 20%, rgba(56,189,248,.34), transparent 60%),
  radial-gradient(35% 40% at 60% 70%, rgba(59,130,246,.32), transparent 60%),
  radial-gradient(30% 40% at 30% 80%, rgba(16,185,129,.26), transparent 60%);
  filter: blur(48px) saturate(120%);
  opacity: .68; mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .aurora-wrap { transform: none !important; }
  .home-hero .video-container { transform: none !important; }
}
.home-hero .content { position: relative; z-index: 1; text-align: center; padding: 0 20px; max-width: 820px; margin: 0 auto; }
.home-hero .content { width: 100%; }
.home-hero h1 { font-size: clamp(34px, 5.6vw, 52px); line-height: 1.08; color: var(--text-strong); font-weight: 700; letter-spacing: -0.01em; }
.home-hero h1 + h1 { margin-top: 6px; }
.home-hero .hero-highlight { color: var(--accent); font-weight: 800; }
.home-hero .lead { font-size: 20px; color: var(--text); margin-top: 12px; }
.home-hero .lead { padding: 0 6px; }
.home-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.home-hero .actions .btn { width: auto; }
@media (max-width: 400px) {
  .home-hero .actions { gap: 8px; }
  .home-hero .actions .btn { flex: 1 1 100%; justify-content: center; }
}
.home-hero .meta { color: var(--text-muted); margin-top: 18px; line-height: 1.4; }
/* Fade-in/out for rotating hero word */
.home-hero .hero-highlight { display: inline-block; transition: opacity 280ms ease-out, transform 280ms cubic-bezier(0.22, 1, 0.36, 1); transform: translateY(0); will-change: transform, opacity; }
.home-hero .hero-highlight .word { color: var(--accent); }
.home-hero .hero-highlight .period { color: var(--text-strong); }
.home-hero .hero-highlight.pre-swap { opacity: 0; transform: translateY(10px); }
.home-hero .hero-highlight.swap-out { opacity: 0; transform: translateY(10px); }
.home-hero .hero-highlight.swap-in { opacity: 1; transform: translateY(0); }
@keyframes caretBlink { 50% { opacity: 0; } }

/* Cards */
.card { background: color-mix(in srgb, var(--surface-2) 50%, transparent); border: 1px solid var(--border-weak); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.card { background: var(--surface-2); border: 1px solid var(--border-weak); border-radius: 16px; box-shadow: 0 8px 30px rgba(2,6,23,.06); }
.card .card-body { padding: 28px; }

/* Pricing */
.solution-item { background: color-mix(in srgb, var(--surface-2) 60%, transparent); border: 1px solid var(--border-weak); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.solution-item { background: var(--surface-2); border: 1px solid var(--border-weak); border-radius: 16px; box-shadow: 0 8px 30px rgba(2,6,23,.06); }
.solution-content h2, .solution-content h3 { color: var(--text-strong); }
.solution-content h5 { color: var(--text); }
.theme-btn.bg-bluetone, .theme-btn { background: var(--accent); color: #0b1222; border-radius: 12px; padding: 10px 16px; display: inline-block; }
.theme-btn.bg-bluetone, .theme-btn { background: var(--accent); color: #ffffff; border-radius: 12px; padding: 10px 16px; display: inline-block; }
.theme-btn.bg-bluetone:hover, .theme-btn:hover { filter: brightness(0.95); }

/* Footer */
.footer-section { background: var(--surface-0) !important; border-top: 1px solid var(--border-weak); }
.footer-title, .bluetone-text-secondary, .footer-section a { color: var(--text) !important; }
.copyright-area { color: var(--text-muted); }

/* Footer layout */
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { min-width: 0; }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--text-strong); }

/* Newsletter */
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.newsletter-input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-weak); background: var(--surface-2); color: var(--text); outline: none; transition: 160ms ease; }
.newsletter-input:focus { border-color: color-mix(in srgb, var(--accent) 35%, var(--border-weak)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.newsletter-btn { white-space: nowrap; }

/* Social */
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-weak); border-radius: 10px; background: var(--surface-2); color: var(--text); transition: 160ms ease; }
.footer-social a:hover { transform: translateY(-1px); color: var(--text-strong); }

/* Utilities */
.mobile-only { display: none; }
.desktop-only { display: inline; }
@media (max-width: 768px) {
  .mobile-only { display: inline; }
  .desktop-only { display: none; }
}

/* Slightly lighter heading on small screens for legibility */
@media (max-width: 560px) {
  .home-hero h1 { font-weight: 700; }
  .home-hero .hero-highlight { font-weight: 800; }
}

/* New sections */
.trust-strip { padding: 24px 0; background: var(--surface-1); border-top: 1px solid var(--border-weak); border-bottom: 1px solid var(--border-weak); }
.trust-strip .trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 500; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-weak); border-radius: 999px; background: #f9fafb; color: var(--text); }

.props { padding: clamp(48px, 6vw, 72px) 0; }
.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .props-grid { grid-template-columns: 1fr; } }
.prop-card { background: var(--surface-2); border: 1px solid var(--border-weak); border-radius: 16px; padding: 20px; box-shadow: 0 8px 30px rgba(2,6,23,.06); }
.prop-card h3 { margin-bottom: 8px; color: var(--text-strong); font-size: 1.25rem; }
.prop-card p { color: var(--text); margin: 0; }

.platform-strip { background: var(--surface-1); border-top: 1px solid var(--border-weak); border-bottom: 1px solid var(--border-weak); padding: 14px 0; }
.platform-row { display: flex; gap: 24px; align-items: center; justify-content: center; color: var(--text); flex-wrap: wrap; }
.platform-item { display: inline-flex; align-items: center; gap: 12px; }
.platform-row i { font-size: 1.25rem; color: var(--text-strong); line-height: 1; }
.platform-row span { font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 768px) { .platform-row { gap: 40px; } }
@media (max-width: 480px) { .platform-item { gap: 10px; } }
/* On mobile, style like trust badges */
@media (max-width: 640px) {
  .platform-row { gap: 12px 16px; }
  .platform-item { background: #f9fafb; border: 1px solid var(--border-weak); border-radius: 999px; padding: 8px 12px; }
  .platform-row i { font-size: 1.15rem; }
  .platform-row span { font-weight: 600; }
}
.footer-section a { text-decoration: none !important; }
.footer-section a:hover { text-decoration: none !important; color: var(--text-strong); }

.faq { padding: clamp(40px, 5vw, 56px) 0 clamp(20px, 3vw, 28px); }
.faq h2 { text-align: center; margin-bottom: 16px; }
.faq .faq-grid { max-width: 900px; margin: 0 auto; }
.faq details { border: 1px solid var(--border-weak); border-radius: 12px; padding: 12px 16px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-strong); }
.faq p { color: var(--text); margin: 10px 0 0; }

.cta-final { text-align: center; padding: clamp(20px, 3.5vw, 32px) 0 clamp(48px, 6vw, 72px); }
.cta-final { position: relative; overflow: hidden; }
.cta-final .cta-aurora { position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; filter: blur(42px) saturate(120%); opacity: .42;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(30% 35% at 70% 20%, rgba(56,189,248,.30), transparent 60%),
    radial-gradient(35% 40% at 60% 70%, rgba(59,130,246,.28), transparent 60%),
    radial-gradient(30% 40% at 30% 80%, rgba(16,185,129,.22), transparent 60%);
  animation: ctaAuroraDrift 18s ease-in-out infinite;
}
.cta-final .cta-panel { position: relative; z-index: 1; }
@keyframes ctaAuroraDrift {
  0% { transform: translate3d(-6px, 0, 0) scale(1); }
  50% { transform: translate3d(6px, 4px, 0) scale(1.01); }
  100% { transform: translate3d(-6px, 0, 0) scale(1); }
}
.cta-final .cta-panel { max-width: 840px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--border-weak); border-radius: 16px; box-shadow: 0 12px 40px rgba(2,6,23,.06); padding: 28px; }

/* Mini-benefits under CTA buttons */
.cta-final .mini-benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2.2vw, 24px);
  margin-top: 14px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.cta-final .mini-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
}
.cta-final .mini-benefits i {
  font-size: 15px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.cta-final .sub { color: var(--text); margin: 6px 0 0; }
.cta-final .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.cta-final .mini-benefits { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: var(--text-muted); margin-top: 12px; font-weight: 500; }
.cta-final .mini-benefits i { color: var(--text-strong); opacity: 0.6; }

/* Reusable aurora for section headings/heroes */
.section-aurora { position: absolute; left: -10%; right: -10%; top: -20px; height: clamp(180px, 28vw, 320px); z-index: 0; pointer-events: none;
  filter: blur(36px) saturate(110%);
  opacity: .28;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(99,102,241,.32), transparent 60%),
    radial-gradient(30% 35% at 70% 20%, rgba(56,189,248,.26), transparent 60%),
    radial-gradient(35% 40% at 60% 70%, rgba(59,130,246,.24), transparent 60%),
    radial-gradient(30% 40% at 30% 80%, rgba(16,185,129,.18), transparent 60%);
  animation: sectionAuroraDrift 22s ease-in-out infinite alternate;
}
@keyframes sectionAuroraDrift {
  0% { transform: translate3d(-8px, 0, 0) scale(1); }
  100% { transform: translate3d(8px, 3px, 0) scale(1.01); }
}
