/* ============================================================
   ARKYON — Design System & Styles
   Aesthetic: Cosmic Precision
   Fonts: Syne (display) + Outfit (body) + IBM Plex Mono (accent)
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg:            #050508;
  --bg-alt:        #0B0B14;
  --bg-card:       #0F0F1A;
  --surface:       rgba(255,255,255,0.025);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(0,229,158,0.35);
  --accent:        #00E59E;
  --accent-dim:    rgba(0,229,158,0.12);
  --accent2:       #7C5CFC;
  --accent2-dim:   rgba(124,92,252,0.12);
  --accent3:       #FF6B6B;
  --text:          #E4E4E9;
  --text-muted:    #A3A3B3;
  --text-dim:      #76768A;
  --white:         #ffffff;
  --glow:          rgba(0,229,158,0.08);
  --glow-strong:   rgba(0,229,158,0.18);
  --gradient:      linear-gradient(135deg, var(--accent), var(--accent2));

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Spacing (8px grid) */
  --s1:  0.25rem;  /* 4  */
  --s2:  0.5rem;   /* 8  */
  --s3:  0.75rem;  /* 12 */
  --s4:  1rem;     /* 16 */
  --s5:  1.5rem;   /* 24 */
  --s6:  2rem;     /* 32 */
  --s7:  3rem;     /* 48 */
  --s8:  4rem;     /* 64 */
  --s9:  6rem;     /* 96 */
  --s10: 8rem;     /* 128 */

  /* Layout */
  --max-w: 1280px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

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

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
a.card, a.case-card, a.industry-card, a.blog-card { display: block; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; background: none; outline: none; }
button { cursor: pointer; }

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.8rem); line-height: 1.3; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; }
h4 { font-size: 1.15rem; line-height: 1.45; }
p  { max-width: 680px; line-height: 1.8; }
.mono { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.05em; /* prevent clipping on italic/wide glyphs */
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s5);
}
.section {
  padding: var(--s9) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.grid {
  display: grid;
  gap: var(--s5);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 60px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #00ffad;
  box-shadow: 0 0 30px var(--glow), 0 8px 32px rgba(0,229,158,0.25);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--s4) 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--s3) 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.nav-logo span {
  color: var(--accent);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s7);
}
.nav-links {
  display: flex;
  gap: var(--s6);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content {
  position: relative;
  max-width: 620px;
}
.hero-content h1 {
  margin-bottom: var(--s5);
  color: var(--white);
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--s7);
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}
/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-up 1s var(--ease) 0.4s both;
}
.hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0,229,158,0.06));
}
.hero-visual-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,229,158,0.08);
  border: 1px solid rgba(0,229,158,0.2);
  color: var(--accent);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.hero-visual-label.label-1 { top: 8%; right: 12%; animation-delay: 0s; }
.hero-visual-label.label-2 { top: 38%; left: 2%; animation-delay: 1.5s; }
.hero-visual-label.label-3 { bottom: 22%; right: 5%; animation-delay: 3s; background: rgba(124,92,252,0.08); border-color: rgba(124,92,252,0.2); color: var(--accent2); }
.hero-visual-label.label-4 { bottom: 8%; left: 15%; animation-delay: 4.5s; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,158,0.12), transparent 70%);
  top: -15%;
  right: -10%;
  animation: float 10s ease-in-out infinite;
}
.hero-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(124,92,252,0.1), transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: float 12s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,229,158,0.08), transparent 70%);
  top: 40%;
  right: 20%;
  animation: float 8s ease-in-out infinite 2s;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--s4);
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
}
.page-hero .hero-orb {
  opacity: 0.6;
}

/* --- Logo/Partner Strip --- */
.logo-strip {
  padding: var(--s7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logo-strip-label {
  text-align: center;
  margin-bottom: var(--s6);
}
.logo-marquee {
  display: flex;
  gap: var(--s8);
  animation: marquee 30s linear infinite;
}
.logo-marquee-wrapper {
  display: flex;
  gap: var(--s8);
  overflow: hidden;
}
.logo-item {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.3s;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.logo-item:hover {
  opacity: 0.9;
}
.logo-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Stats --- */
.stats-section {
  padding: var(--s8) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
}
.stat-item {
  text-align: center;
  padding: var(--s6) var(--s4);
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}
.stat-number .accent { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Cards (General) --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s6);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px var(--glow);
}
.card:hover::before {
  opacity: 1;
}

/* Service Cards */
.service-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
  transition: background 0.4s;
}
.service-card:hover .card-icon {
  background: var(--accent);
}
.service-card .card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.4s;
}
.service-card:hover .card-icon svg {
  stroke: var(--bg);
}
.service-card h3 {
  margin-bottom: var(--s3);
  color: var(--white);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s5);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.3s;
}
.card-link:hover { gap: var(--s3); }

/* Case Study Cards */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px var(--glow);
  border-color: var(--border-hover);
}
.case-card-image {
  height: 220px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.case-card-image .case-gradient {
  position: absolute;
  inset: 0;
}
.case-card-image .case-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.case-card-body {
  padding: var(--s6);
}
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: var(--s1) var(--s3);
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  margin-bottom: var(--s4);
}
.case-card-body h3 {
  color: var(--white);
  margin-bottom: var(--s3);
  font-size: 1.3rem;
}
.case-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--s5);
}
.case-metrics {
  display: flex;
  gap: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.case-metric {
  text-align: left;
}
.case-metric .metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.case-metric .metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Industry Cards */
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s7) var(--s6);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.industry-card:hover::after {
  transform: scaleX(1);
}
.industry-card .industry-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s5);
}
.industry-card .industry-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.industry-card h3 {
  color: var(--white);
  margin-bottom: var(--s3);
}
.industry-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Why / Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
}
.feature-item {
  display: flex;
  gap: var(--s5);
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.feature-item:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.feature-text h4 {
  color: var(--white);
  margin-bottom: var(--s2);
}
.feature-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s6);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: var(--s4);
  left: var(--s5);
  line-height: 1;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--s5);
  padding-top: var(--s6);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg);
}
.testimonial-info .name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}
.testimonial-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--s9) 0;
  position: relative;
  overflow: hidden;
}
.cta-box {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--s9) var(--s8);
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-box h2 {
  color: var(--white);
  margin-bottom: var(--s4);
  position: relative;
}
.cta-box p {
  color: var(--text-muted);
  margin: 0 auto var(--s6);
  font-size: 1.1rem;
  max-width: 540px;
  position: relative;
}
.cta-box .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s8) 0 var(--s6);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s7);
  margin-bottom: var(--s8);
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--s4);
  max-width: 320px;
}
.footer-socials {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s5);
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-socials a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: fill 0.3s;
}
.footer-socials a:hover svg { fill: var(--accent); }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: var(--s5);
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: var(--s1) 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
}
.form-group {
  margin-bottom: var(--s5);
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s6);
}
.contact-info-card h3 {
  color: var(--white);
  margin-bottom: var(--s5);
}
.contact-info-item {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.contact-info-item .info-text h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.contact-info-item .info-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Blog Cards --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s7);
}
.blog-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  position: relative;
}
.blog-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s5);
}
.blog-featured-content h2 {
  color: var(--white);
  margin-bottom: var(--s4);
  font-size: 1.8rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.blog-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.blog-card-body {
  padding: var(--s5);
}
.blog-card-body .blog-meta {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.blog-meta .blog-date,
.blog-meta .blog-read-time {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.blog-card-body h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: var(--s3);
  line-height: 1.35;
}
.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s7);
  flex-wrap: wrap;
}
.filter-tab {
  padding: var(--s2) var(--s5);
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.filter-tab:hover,
.filter-tab.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* --- Article Page --- */
.article-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-top: 72px;
}
.article-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, rgba(5,5,8,0.5) 60%, rgba(5,5,8,0.3));
}
.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s7) 0;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.article-meta span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.article-meta .article-category {
  color: var(--accent);
  padding: 3px 12px;
  background: var(--accent-dim);
  border-radius: 20px;
}
.article-hero-content h1 {
  max-width: 800px;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s7) var(--s5);
}
.article-body p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--s5);
  max-width: none;
}
.article-body h2 {
  color: var(--white);
  margin-top: var(--s7);
  margin-bottom: var(--s5);
  font-size: 1.6rem;
}
.article-body h3 {
  color: var(--white);
  margin-top: var(--s6);
  margin-bottom: var(--s4);
  font-size: 1.25rem;
}
.article-body ul,
.article-body ol {
  margin-bottom: var(--s5);
  padding-left: var(--s5);
}
.article-body li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: var(--s3);
  position: relative;
  padding-left: var(--s4);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body ol {
  counter-reset: ol-counter;
  list-style: none;
}
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: -4px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--s4) var(--s6);
  margin: var(--s6) 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body blockquote p {
  color: var(--text);
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
}
.article-body strong {
  color: var(--white);
  font-weight: 600;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}
.article-author-box {
  display: flex;
  gap: var(--s5);
  align-items: center;
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--s7);
}
.article-author-box .testimonial-avatar {
  flex-shrink: 0;
}
.article-share {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
}
.article-share span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: var(--s3);
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.share-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.share-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}
.share-btn:hover svg { fill: var(--accent); }
.related-articles {
  padding: var(--s8) 0;
}
@media (max-width: 768px) {
  .article-hero { height: 300px; }
  .article-body { padding: var(--s6) var(--s4); }
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.value-card {
  text-align: center;
  padding: var(--s7) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.value-card .value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s5);
  border-radius: 16px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card .value-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.value-card h4 {
  color: var(--white);
  margin-bottom: var(--s3);
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.team-card {
  text-align: center;
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.team-card:hover {
  border-color: var(--border-hover);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--s5);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--bg);
}
.team-card h4 {
  color: var(--white);
  margin-bottom: var(--s1);
}
.team-card .team-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.team-card .team-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin: 0 auto var(--s5);
}
.process-step h4 {
  color: var(--white);
  margin-bottom: var(--s3);
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 240px;
  margin: 0 auto;
}

/* --- Tech Logos --- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: center;
}
.tech-badge {
  padding: var(--s3) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.3s;
}
.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* --- Newsletter --- */
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s7);
  text-align: center;
}
.newsletter-box h3 {
  color: var(--white);
  margin-bottom: var(--s3);
}
.newsletter-box p {
  color: var(--text-muted);
  margin: 0 auto var(--s5);
  max-width: 480px;
}
.newsletter-form {
  display: flex;
  gap: var(--s3);
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: var(--s3) var(--s5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 60px;
  color: var(--text);
}
.newsletter-form input:focus {
  border-color: var(--accent);
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--s5) 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding-bottom: var(--s5);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- About Page --- */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
}
.story-image {
  border-radius: var(--radius);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.story-content h2 {
  color: var(--white);
  margin-bottom: var(--s5);
}
.story-content p {
  color: var(--text-muted);
  margin-bottom: var(--s4);
}
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
}
.mv-card {
  padding: var(--s7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}
.mv-card h3 {
  color: var(--accent);
  margin-bottom: var(--s4);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mv-card p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Industry Detail Cards --- */
.industry-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s7);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s6);
  margin-bottom: var(--s6);
  transition: all 0.4s var(--ease);
}
.industry-detail-card:hover {
  border-color: var(--border-hover);
}
.industry-detail-left h3 {
  color: var(--white);
  margin-bottom: var(--s3);
  font-size: 1.4rem;
}
.industry-detail-left .industry-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--s2);
}
.industry-detail-left .industry-stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.industry-detail-right p {
  color: var(--text-muted);
  margin-bottom: var(--s4);
}
.industry-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.use-case-tag {
  padding: var(--s1) var(--s3);
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* --- Case Study Detail --- */
.case-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
  margin-bottom: var(--s7);
}
.case-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.case-detail-metric {
  text-align: center;
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.case-detail-metric .metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.case-detail-metric .metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--s2);
}

/* ============================================================
   Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -20px); }
  66% { transform: translate(-10px, 12px); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1,
.hero-content p,
.hero-ctas {
  animation: fade-in-up 0.9s var(--ease) both;
}
.hero-content p  { animation-delay: 0.15s; }
.hero-ctas       { animation-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, .values-grid, .team-grid, .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .story-section, .contact-grid, .case-detail-hero, .blog-featured, .hero-split { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  .industry-detail-card { grid-template-columns: 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
  .process-grid::before { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu .btn { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu.active {
    position: fixed;
    inset: 0;
    background: rgba(5,5,8,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .nav-menu.active .nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--s6);
    text-align: center;
  }
  .nav-menu.active .nav-links a {
    font-size: 1.6rem;
    color: var(--white);
  }
  .nav-menu.active .btn {
    display: inline-flex;
    margin-top: var(--s6);
  }
  .grid-2, .grid-3, .grid-4,
  .values-grid, .team-grid, .process-grid,
  .stats-grid, .testimonials-grid,
  .case-detail-metrics { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin: var(--s6) auto 0; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-ctas { flex-direction: column; }
  .section { padding: var(--s8) 0; }
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 1rem; }
  .cta-box { padding: var(--s7) var(--s5); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s3); text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .blog-featured-image { min-height: 260px; }
  .filter-tabs { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s4); }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .case-metrics { flex-direction: column; gap: var(--s3); }
  .hero-proof { flex-direction: column; gap: var(--s3); }
}

/* ============================================================
   Accessibility
   ============================================================ */

/* Skip to Content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s4);
  padding: var(--s3) var(--s5);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-xs);
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--s4);
}

/* Visible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--accent-dim);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-orb { display: none; }
  .logo-marquee { animation: none; }
  .hero-svg circle animate,
  .hero-svg line animate,
  .hero-svg animateMotion { display: none; }
}

/* ============================================================
   Hero Proof Bar
   ============================================================ */
.hero-proof {
  display: flex;
  gap: var(--s6);
  margin-top: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
}
.hero-proof-item strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.2;
}
.hero-proof-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   Form Enhancements
   ============================================================ */
.form-privacy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: var(--s4);
  line-height: 1.6;
}
.form-privacy a {
  color: var(--accent);
  text-decoration: underline;
}
.form-status {
  padding: var(--s4);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: var(--s4);
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(0,229,158,0.1);
  border: 1px solid rgba(0,229,158,0.2);
  color: var(--accent);
}
.form-status.error {
  display: block;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  color: var(--accent3);
}

/* Footer contrast boost */
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
