/* ═══════════════════════════════════════════════════════════════
   34 North — styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --bg-dark:        #0d1117;
  --bg-dark-2:      #161b27;
  --bg-light:       #f8fafc;
  --bg-white:       #ffffff;

  --accent:         #3b82f6;
  --accent-dark:    #2563eb;
  --accent-light:   #60a5fa;
  --purple:         #8b5cf6;
  --cyan:           #06b6d4;
  --green:          #22c55e;

  --text-dark:      #0f172a;
  --text-mid:       #334155;
  --text-muted:     #64748b;
  --text-light:     #e2e8f0;
  --text-faint:     #94a3b8;

  --border-light:   rgba(0, 0, 0, 0.08);
  --border-dark:    rgba(255, 255, 255, 0.08);

  --nav-height:     68px;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;

  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

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

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

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Focus Styles ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── Sections ───────────────────────────────────────────────── */
.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  overflow: hidden;
}

.section--dark  { background: var(--bg-dark); }
.section--light { background: var(--bg-light); }

/* ─── Typography helpers ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  background: rgba(59, 130, 246, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.section-label--ai {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.section-heading--light { color: var(--text-light); }

.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.section-sub--light { color: var(--text-faint); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, #a78bfa 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.btn--light {
  background: white;
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.btn--wide { width: 100%; justify-content: center; }

/* ─── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease,
              backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header.is-light {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-inner {
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.site-header.is-light .logo-text { color: var(--text-dark); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-faint);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }

.site-header.is-light .nav-links a { color: var(--text-muted); }
.site-header.is-light .nav-links a:hover { color: var(--text-dark); background: rgba(0,0,0,0.04); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 12px rgba(59,130,246,0.35);
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: white !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.site-header.is-light .hamburger:hover { background: rgba(0,0,0,0.06); }

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-faint);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.site-header.is-light .bar { background: var(--text-muted); }

.hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--bg-dark-2);
  border-left: 1px solid var(--border-dark);
  z-index: 950;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-faint);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--text-light); background: rgba(255,255,255,0.06); }

.mobile-cta {
  margin-top: 20px;
  background: var(--accent);
  color: white !important;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 16px !important;
  font-weight: 600 !important;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-faint);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.08); color: white; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.section--hero {
  justify-content: center;
  align-items: center;
  background: var(--bg-dark);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-heading {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-light);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-faint);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ─── Services Grid ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
  position: relative;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px);
}

.service-card--featured {
  background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.service-card--featured:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-card--featured .service-card__icon { color: var(--purple); }

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.service-card__arrow {
  display: inline-block;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease-out);
}
.service-card:hover .service-card__arrow { transform: translateX(4px); }
.service-card--featured .service-card__arrow { color: var(--purple); }

/* ─── Split Layout (detail sections) ─────────────────────────── */
.section--split .container { width: 100%; }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.section--reverse .split-layout {
  direction: rtl;
}
.section--reverse .split-layout > * {
  direction: ltr;
}

.split-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.9;
}

/* ─── Feature List ───────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.feature-list--dark li { color: var(--text-muted); }

.feature-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-check--dark { color: var(--accent-dark); }

/* ─── AI Section ─────────────────────────────────────────────── */
.section--ai {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.section--ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 40%, rgba(59,130,246,0.1) 0%, transparent 60%);
}

.ai-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ai-sub {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ai-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
}

.ai-pillar {
  padding: 36px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s;
  text-align: center;
}

.ai-pillar:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(139,92,246,0.25);
}

.ai-pillar__icon {
  width: 44px;
  height: 44px;
  color: #a78bfa;
  margin: 0 auto 20px;
}

.ai-pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

.ai-pillar p {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.65;
}

.ai-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.ai-network svg {
  width: 100%;
  height: 100%;
}

/* ─── Why Us Grid ────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.why-card {
  padding: 32px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.why-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 30px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}

.why-card__icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Work / Projects Grid ───────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px);
}

.work-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-card__type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.work-card__ext {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease-out);
}
.work-card:hover .work-card__ext { transform: translate(3px, -3px); }

.work-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.work-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.work-card__url {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0.8;
}

.work-note {
  margin-top: 44px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
}

.work-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Contact Section ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  padding-top: calc(var(--nav-height) + 60px);
}

.contact-intro {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.contact-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-note p {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.65;
}

/* ─── Contact Form ───────────────────────────────────────────── */
.contact-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group select option { background: var(--bg-dark-2); color: var(--text-light); }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #ef4444;
  background: rgba(239,68,68,0.05);
}

.required { color: var(--accent); }

.field-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 18px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  opacity: 0.7;
}

/* Honeypot — visually hidden from humans */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}

.captcha-group input {
  max-width: 140px;
}

.form-actions { margin-top: 8px; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn.is-loading .btn-label { opacity: 0.6; }
.btn.is-loading .btn-spinner { display: block; }

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-faint);
  opacity: 0.7;
  text-align: center;
  line-height: 1.5;
}

/* Form states */
.form-success,
.form-error-state {
  padding: 40px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-faint);
}

.form-error-state p {
  font-size: 0.95rem;
  color: var(--text-faint);
}

.form-error-state a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #080c12;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 10px;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-faint);
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: #0a66c2;
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.1);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.footer-nav a {
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.footer-nav a:hover { opacity: 1; color: var(--text-light); }

.footer-legal {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-faint);
  opacity: 0.5;
}

/* ─── Pricing Callout ────────────────────────────────────────── */
.pricing-callout {
  font-size: 0.82rem;
  color: var(--text-faint);
  opacity: 0.65;
  margin-top: 12px;
}

/* ─── Plans Grid ─────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: center;
}

.plan-card {
  position: relative;
  padding: 36px 32px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.plan-card:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 8px 40px rgba(59,130,246,0.08);
  transform: translateY(-3px);
}

.plan-card--featured {
  background: rgba(59,130,246,0.08);
  border-color: var(--accent);
  box-shadow: 0 12px 48px rgba(59,130,246,0.18);
  transform: translateY(-8px);
}

.plan-card--featured:hover {
  box-shadow: 0 16px 56px rgba(59,130,246,0.25);
  transform: translateY(-11px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-card__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.plan-card--featured .plan-name { color: var(--accent-light); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
}

.plan-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-period {
  font-size: 0.95rem;
  color: var(--text-faint);
}

.plan-hours {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 6px;
  opacity: 0.75;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-card--featured .plan-features li::before { color: var(--accent-light); }

.plans-note {
  text-align: center;
  margin-top: 44px;
  font-size: 0.9rem;
  color: var(--text-faint);
  opacity: 0.75;
}

/* ─── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }
.reveal--delay-5 { transition-delay: 0.40s; }
.reveal--delay-6 { transition-delay: 0.48s; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-pillars { grid-template-columns: repeat(2, 1fr); }
  .ai-pillars .ai-pillar:last-child { grid-column: span 2; max-width: 400px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: span 2; text-align: left; }
}

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

  .section--reverse .split-layout {
    direction: ltr;
  }

  .split-visual {
    order: -1;
  }

  .illustration { max-width: 300px; }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro { position: static; }

  .plans-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
  .plan-card--featured:hover { transform: translateY(-3px); }
}

@media (max-width: 768px) {
  .hero-heading { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }
  .ai-pillars { grid-template-columns: 1fr; }
  .ai-pillars .ai-pillar:last-child { grid-column: span 1; max-width: none; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-legal { grid-column: span 1; text-align: center; }
  .footer-nav ul { justify-content: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .section { padding-bottom: 60px; }
}

/* ─── Print ───────────────────────────────────────────────────── */
@media print {
  .site-header, .mobile-menu, .mobile-overlay { display: none; }
  .section { min-height: auto; padding: 40px 0; }
  .reveal { opacity: 1; transform: none; }
  .orb, .hero-bg-grid, .ai-network { display: none; }
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
