/* ============================================================
   ORKEN AI — Design System
   Premium AI Automation Agency
   ============================================================ */

:root {
  /* Brand */
  --o-bg: #FFFFFF;
  --o-bg-alt: #F7F8FB;
  --o-bg-dark: #0A0B14;
  --o-bg-dark-alt: #11132A;
  --o-ink: #0A0B14;
  --o-ink-2: #2B2D42;
  --o-ink-3: #5B5E7A;
  --o-ink-4: #9094B0;
  --o-line: #E7E9F2;
  --o-line-2: #D9DCE8;

  --o-primary: #4F46E5;     /* indigo */
  --o-primary-2: #7C3AED;   /* violet */
  --o-accent: #06B6D4;      /* cyan */
  --o-accent-2: #22D3EE;
  --o-success: #10B981;
  --o-warn: #F59E0B;
  --o-danger: #EF4444;

  --o-grad: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --o-grad-soft: linear-gradient(135deg, rgba(79,70,229,.08) 0%, rgba(124,58,237,.08) 100%);

  --o-radius: 14px;
  --o-radius-lg: 22px;
  --o-radius-xl: 32px;

  --o-shadow-sm: 0 2px 8px rgba(15, 17, 40, 0.04), 0 1px 2px rgba(15, 17, 40, 0.06);
  --o-shadow: 0 8px 28px rgba(15, 17, 40, 0.06), 0 2px 6px rgba(15, 17, 40, 0.04);
  --o-shadow-lg: 0 24px 60px rgba(15, 17, 40, 0.10), 0 8px 16px rgba(15, 17, 40, 0.06);
  --o-shadow-glow: 0 18px 48px rgba(79, 70, 229, 0.28);
}

* { box-sizing: border-box; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--o-ink);
  background: var(--o-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--o-ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.25; }
h4 { font-size: 1.125rem; line-height: 1.3; }

p { color: var(--o-ink-3); line-height: 1.65; }

a { color: var(--o-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--o-primary-2); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--o-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--o-grad);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.gradient-text {
  background: var(--o-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-pill {
  background: var(--o-grad);
  color: white;
  padding: 0 .35em;
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap;
}

/* ===== NAV ===== */
.o-nav {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--o-line);
}
.o-nav .container { max-width: 1280px; }
.o-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.o-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--o-ink) !important;
}
.o-logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--o-grad);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(79,70,229,.35);
  position: relative;
}
.o-logo-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.25) 100%);
  pointer-events: none;
}

.o-nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.o-nav-links > li > a, .o-nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--o-ink-2) !important;
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
}
.o-nav-links > li > a:hover, .o-nav-links > li > button:hover,
.o-nav-links > li.active > a {
  background: var(--o-bg-alt);
  color: var(--o-ink) !important;
}
.o-nav-links > li > button .chev {
  width: 10px; height: 10px;
  transition: transform .2s ease;
}
.o-nav-links > li.open > button .chev { transform: rotate(180deg); }

/* Mega menu */
.o-mega {
  position: absolute;
  left: 50%; transform: translateX(-50%) translateY(8px);
  top: calc(100% + 4px);
  width: min(1180px, calc(100vw - 32px));
  background: white;
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius-lg);
  box-shadow: var(--o-shadow-lg);
  padding: 28px;
  display: none;
  z-index: 60;
}
.o-mega.open {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  animation: megaIn .18s ease-out;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(0); }
  to   { opacity: 1; transform: translateX(-50%) translateY(8px); }
}
.o-mega-col h5 {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--o-line);
}
.o-mega-col h5 .ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--o-grad-soft); color: var(--o-primary);
  flex-shrink: 0;
}
.o-mega-col ul { list-style: none; margin: 0; padding: 0; }
.o-mega-col li a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--o-ink-2) !important;
}
.o-mega-col li a:hover { color: var(--o-primary) !important; transform: translateX(2px); }

/* CTA button */
.o-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.o-btn-primary {
  background: var(--o-grad);
  color: white !important;
  box-shadow: 0 8px 22px rgba(79,70,229,.28);
}
.o-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,.36); }
.o-btn-ghost {
  background: white;
  color: var(--o-ink) !important;
  border: 1px solid var(--o-line);
}
.o-btn-ghost:hover { border-color: var(--o-primary); color: var(--o-primary) !important; }
.o-btn-dark {
  background: var(--o-ink);
  color: white !important;
}
.o-btn-dark:hover { background: var(--o-primary); }
.o-btn-lg { padding: 16px 26px; font-size: 1rem; }

/* ===== SECTIONS ===== */
.o-section { padding: 96px 0; }
.o-section-sm { padding: 64px 0; }
.o-section-dark { background: var(--o-bg-dark); color: white; }
.o-section-dark h1, .o-section-dark h2, .o-section-dark h3, .o-section-dark h4 { color: white; }
.o-section-dark p { color: rgba(255,255,255,.7); }
.o-section-alt { background: var(--o-bg-alt); }

.container { max-width: 1280px; }

/* Dotted bg pattern (replaces reference's dot bg) */
.o-dot-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(79,70,229,.18) 1px, transparent 0);
  background-size: 22px 22px;
}
.o-dot-bg-dark {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 22px 22px;
}

/* ===== HERO ===== */
.o-hero {
  position: relative;
  padding: 80px 0 64px;
  background: var(--o-bg-alt);
  overflow: hidden;
}
.o-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,13,40,.10) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  pointer-events: none;
}
.o-hero-orb {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  pointer-events: none;
}
.o-hero-orb.a { top: -120px; right: -100px; background: radial-gradient(circle, #7C3AED 0%, transparent 70%); }
.o-hero-orb.b { bottom: -180px; left: -120px; background: radial-gradient(circle, #06B6D4 0%, transparent 70%); }

.o-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--o-ink-3);
  margin-bottom: 24px;
}
.o-breadcrumb a { color: var(--o-ink-3); }
.o-breadcrumb .sep { opacity: .4; }

/* ===== CARDS ===== */
.o-card {
  background: white;
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius-lg);
  padding: 28px;
  transition: all .2s ease;
}
.o-card:hover {
  border-color: rgba(79,70,229,.4);
  transform: translateY(-3px);
  box-shadow: var(--o-shadow);
}
.o-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--o-grad-soft);
  color: var(--o-primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.o-card-icon-grad {
  background: var(--o-grad);
  color: white;
  box-shadow: 0 10px 24px rgba(79,70,229,.3);
}

/* Stats strip */
.o-stats {
  background: white;
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius-lg);
  box-shadow: var(--o-shadow);
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.o-stat { text-align: center; padding: 8px 24px; border-right: 1px solid var(--o-line); }
.o-stat:last-child { border-right: none; }
.o-stat-value {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--o-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.o-stat-label { font-size: 0.85rem; color: var(--o-ink-3); margin-top: 4px; }

/* Footer */
.o-footer {
  background: var(--o-bg-dark);
  color: rgba(255,255,255,.65);
  padding: 72px 0 32px;
}
.o-footer h6 {
  color: var(--o-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.o-footer ul { list-style: none; padding: 0; margin: 0; }
.o-footer li { margin-bottom: 10px; }
.o-footer a { color: rgba(255,255,255,.65); font-size: 0.92rem; }
.o-footer a:hover { color: white; }
.o-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 56px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
}
.o-footer-rating {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
}
.o-stars { color: #FBBF24; letter-spacing: 2px; }

/* Tag */
.o-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--o-grad-soft);
  color: var(--o-primary);
  border: 1px solid rgba(79,70,229,.15);
}
.o-tag-dark { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.12); }

/* Glow ring around hero visuals */
.o-glow-ring {
  position: relative;
  border-radius: var(--o-radius-xl);
}
.o-glow-ring::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit;
  background: var(--o-grad);
  z-index: -1;
  opacity: .4;
  filter: blur(18px);
}

/* Form */
.o-input, .form-control, .form-select {
  background: var(--o-bg-alt);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  width: 100%;
  transition: all .15s ease;
  font-family: inherit;
}
.o-input:focus, .form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--o-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

/* Code-ish chip block (for technical tone) */
.o-code-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(11,13,40,.04);
  border: 1px solid var(--o-line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--o-ink-2);
}
.o-code-chip-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}

/* Animated gradient border */
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,.35); }
  50%       { box-shadow: 0 0 0 12px rgba(79,70,229,0); }
}
.o-pulse { animation: pulseRing 2.4s ease-in-out infinite; }

/* AI demo widget */
.o-demo {
  background: linear-gradient(180deg, #0A0B14 0%, #11132A 100%);
  border-radius: var(--o-radius-xl);
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.o-demo::before {
  content: ""; position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, #4F46E5, #7C3AED, #06B6D4, #4F46E5);
  filter: blur(14px); opacity: .35;
  z-index: 0; pointer-events: none;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.o-demo-inner {
  position: relative; z-index: 1;
  background: #0A0B14;
  border-radius: calc(var(--o-radius-xl) - 4px);
  padding: 22px;
  color: white;
}

/* Page accent header */
.o-page-header {
  position: relative;
  padding: 80px 0 64px;
  background: var(--o-bg-alt);
  overflow: hidden;
}
.o-page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,13,40,.10) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* Mobile hamburger toggle */
.o-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.o-nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--o-ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.o-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.o-nav-toggle.open span:nth-child(2) { opacity: 0; }
.o-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 991px) {
  .o-nav-toggle { display: flex; }
  .o-nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--o-bg);
    border-top: 1px solid var(--o-line);
    border-bottom: 1px solid var(--o-line);
    padding: 12px 16px 16px;
    z-index: 49;
    box-shadow: var(--o-shadow);
  }
  .o-nav-links.open { display: flex; }
  .o-nav-links > li > a, .o-nav-links > li > button {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
  }
  .o-section { padding: 64px 0; }
  .o-stats { grid-template-columns: repeat(2, 1fr); }
  .o-stat { border-right: none; border-bottom: 1px solid var(--o-line); padding: 16px; }
  .o-mega.open { grid-template-columns: repeat(2, 1fr); }
}
