/* ═══════════════════════════════════════════════════════════════
   IntraMind — Design System
   Apple aesthetics. Oracle positioning. Zero compromise.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --black:       #0a0a0a;
  --dark:        #111111;
  --carbon:      #1a1a1a;
  --graphite:    #2a2a2a;
  --steel:       #3a3a3a;
  --muted:       #6e6e73;
  --silver:      #86868b;
  --light:       #d2d2d7;
  --offwhite:    #f5f5f7;
  --white:       #fbfbfd;
  --accent:      #2997ff;
  --accent-glow: rgba(41, 151, 255, 0.15);
  --success:     #30d158;
  --warm:        #ff9f0a;

  /* Typography */
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text:    'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 160px);
  --content-max: 1080px;
  --content-wide: 1280px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-text);
  background: var(--black);
  color: var(--light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

img, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--white); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--silver);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); opacity: 1; }

.nav-cta {
  font-size: 13px;
  padding: 6px 16px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 980px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-cta:hover { background: #0077ed; opacity: 1 !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--silver); margin: 4px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--graphite);
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  max-width: 900px;
  position: relative;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--silver);
  max-width: 640px;
  margin-top: 24px;
  line-height: 1.5;
  font-weight: 400;
  position: relative;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  position: relative;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.btn-primary:hover { background: #0077ed; transform: scale(1.02); opacity: 1; }

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(41, 151, 255, 0.3);
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.btn-secondary:hover { border-color: var(--accent); background: var(--accent-glow); opacity: 1; }

.hero-video {
  margin-top: 80px;
  width: 100%;
  max-width: 960px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-video video {
  width: 100%;
  border-radius: 16px;
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 24px;
  position: relative;
}

.section-dark { background: var(--black); }
.section-carbon { background: var(--carbon); }
.section-gradient { background: linear-gradient(180deg, var(--black) 0%, var(--carbon) 100%); }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.container-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--silver);
  max-width: 640px;
  margin-top: 16px;
  line-height: 1.5;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Problem Statement ────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 64px;
}

.problem-card {
  background: var(--graphite);
  padding: 40px 32px;
  transition: background 0.3s;
}

.problem-card:hover { background: var(--steel); }

.problem-card .icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.6;
}

/* ── Editions Grid ────────────────────────────────────────── */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.edition-card {
  background: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.edition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.edition-card:hover {
  border-color: rgba(41, 151, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.edition-card:hover::before { opacity: 1; }

.edition-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 20px;
}

.badge-production { background: rgba(48, 209, 88, 0.15); color: var(--success); }
.badge-designed { background: var(--accent-glow); color: var(--accent); }
.badge-beta { background: rgba(255, 159, 10, 0.15); color: var(--warm); }

.edition-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.edition-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.edition-card p {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.6;
  margin-bottom: 24px;
}

.edition-card .replaces {
  font-size: 13px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.edition-card .replaces strong { color: var(--light); }

.edition-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 20px;
  color: var(--accent);
  transition: gap 0.2s;
}

.edition-link:hover { gap: 10px; opacity: 1; }

/* ── Video Showcase ───────────────────────────────────────── */
.video-section {
  padding: var(--section-pad) 24px;
  text-align: center;
}

.video-wrapper {
  max-width: 960px;
  margin: 48px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ── Benchmark Strip ──────────────────────────────────────── */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 64px;
}

.metric-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-item:last-child { border-right: none; }

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-value .unit {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 500;
}

.metric-label {
  font-size: 14px;
  color: var(--silver);
  margin-top: 8px;
}

/* ── Security Section ─────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.security-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.security-item .icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
  border-radius: 12px;
  font-size: 22px;
}

.security-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.security-item p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.5;
}

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table thead th {
  background: var(--graphite);
  font-weight: 600;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table tbody td {
  background: var(--carbon);
  color: var(--silver);
}

.comparison-table tbody tr:hover td { background: var(--graphite); }

.comparison-table .highlight { color: var(--accent); font-weight: 600; }
.comparison-table .dim { color: var(--muted); }

/* ── Enterprise CTA ───────────────────────────────────────── */
.enterprise-cta {
  text-align: center;
  padding: var(--section-pad) 24px;
  position: relative;
}

.enterprise-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.cta-box p {
  font-size: 18px;
  color: var(--silver);
  margin-top: 16px;
  line-height: 1.6;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  align-items: center;
}

.cta-contacts a {
  font-size: 16px;
  font-weight: 500;
}

.cta-contacts .label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 8px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--silver);
}

/* ── Animations ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.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; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .metric-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .metric-item:last-child { border-bottom: none; }
  .editions-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .cta-contacts { align-items: flex-start; }
}

/* ── Divider line ─────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* ── Tag line ─────────────────────────────────────────────── */
.tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: var(--light);
  text-align: center;
  padding: 80px 24px;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto;
}

.tagline em {
  color: var(--accent);
  font-style: normal;
}
