/* ============================================================
   AEWINN {service}labs — CSS
   ============================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0B14;
  --bg-2:      #0E0F1E;
  --bg-3:      #12142A;
  --purple:    #7C3AED;
  --purple-l:  #8B5CF6;
  --purple-xl: #A78BFA;
  --cyan:      #06B6D4;
  --pink:      #EC4899;
  --emerald:   #10B981;
  --text:      #F1F0F8;
  --text-muted:#8885AA;
  --border:    rgba(139,92,246,0.18);
  --glow:      rgba(124,58,237,0.35);
  --radius:    16px;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* TYPOGRAPHY */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-l), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--purple-l);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* CURLY BRACES */
.curly {
  color: var(--purple-l);
  font-family: var(--mono);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple), #4C1D95);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--purple-l);
  background: rgba(139,92,246,0.08);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: linear-gradient(135deg, var(--purple), #4C1D95) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
  transition: all 0.2s !important;
}
.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(124,58,237,0.5) !important;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse 8s ease-in-out infinite;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: rgba(124,58,237,0.25);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: rgba(6,182,212,0.12);
  top: 30%; right: 0;
  animation-delay: -3s;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: rgba(236,72,153,0.1);
  bottom: 0; left: 30%;
  animation-delay: -6s;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-xl);
  margin-bottom: 32px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-tagline-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.hero-tagline-tag {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.1em;
}

/* HEXGRID VISUAL */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hexgrid {
  position: relative;
  width: 380px;
  height: 380px;
}

.hex {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hex--center {
  width: 100px; height: 100px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 20px;
}
.hex--center img { width: 64px; height: 64px; object-fit: contain; }

.hex--ring {
  width: 90px; height: 90px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(14,15,30,0.6);
  backdrop-filter: blur(8px);
  line-height: 1.3;
  transition: all 0.3s;
}
.hex--ring:hover {
  border-color: var(--purple-l);
  color: var(--text);
  background: rgba(124,58,237,0.15);
  transform: scale(1.05);
}

/* Position 6 surrounding items in a circle */
.hex--ring[style*="--i:0"] { top: 5px; left: 50%; transform: translateX(-50%); }
.hex--ring[style*="--i:1"] { top: 20%; right: 5px; }
.hex--ring[style*="--i:2"] { bottom: 20%; right: 5px; }
.hex--ring[style*="--i:3"] { bottom: 5px; left: 50%; transform: translateX(-50%); }
.hex--ring[style*="--i:4"] { bottom: 20%; left: 5px; }
.hex--ring[style*="--i:5"] { top: 20%; left: 5px; }

/* Connector lines */
.hexgrid::before, .hexgrid::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.number-item {
  padding: 24px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.number-item:last-child { border-right: none; }

.number-val {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-xl);
  letter-spacing: -0.02em;
}

.number-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  padding: 120px 0;
}

.approach-steps {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
  border-radius: var(--radius);
}
.step:first-child { border-top: 1px solid var(--border); }
.step:hover { background: rgba(139,92,246,0.04); padding-left: 16px; padding-right: 16px; margin: 0 -16px; }

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-l);
  letter-spacing: 0.1em;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.step-icon {
  font-size: 2rem;
  color: rgba(139,92,246,0.3);
  text-align: right;
  transition: color 0.3s;
}
.step:hover .step-icon { color: var(--purple-l); }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 120px 0;
  background: var(--bg-2);
}

.services-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(139,92,246,0.2);
}

.service-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(14,15,30,0.8));
}
.service-card--featured::after {
  content: 'Core offering';
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  color: var(--purple-xl);
}

.service-card-glow {
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 14px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags span {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 100px;
  color: var(--text-muted);
}

/* CTA card */
.service-card--cta {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.1));
  border-color: rgba(139,92,246,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.service-card-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-card-icon {
  width: 56px; height: 56px;
  object-fit: contain;
}
.service-card--cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.service-card--cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: 120px 0;
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.philosophy-text strong { color: var(--text); font-weight: 600; }
.philosophy-text .section-title { margin-bottom: 28px; }

.pillars {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-l);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--purple-l);
}

.pillar strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.pillar span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SPIRAL VISUAL */
.philosophy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spiral-container {
  position: relative;
  width: 320px; height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spiral-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  animation: spin 20s linear infinite;
}

.spiral-ring--1 {
  width: 300px; height: 300px;
  border-color: rgba(124,58,237,0.3);
  animation-duration: 25s;
}
.spiral-ring--2 {
  width: 220px; height: 220px;
  border-color: rgba(6,182,212,0.3);
  animation-duration: 18s;
  animation-direction: reverse;
}
.spiral-ring--3 {
  width: 140px; height: 140px;
  border-color: rgba(236,72,153,0.3);
  animation-duration: 12s;
}

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

.spiral-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: counter-spin var(--dur, 25s) linear infinite;
}
.spiral-ring--1 .spiral-label { animation-duration: 25s; animation-direction: reverse; }
.spiral-ring--2 .spiral-label { animation-duration: 18s; }
.spiral-ring--3 .spiral-label { animation-duration: 12s; animation-direction: reverse; }

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.spiral-core {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--mono);
  color: #fff;
  box-shadow: 0 0 40px rgba(124,58,237,0.5);
  z-index: 2;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 120px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact-inner {
  position: relative;
  max-width: 680px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
  margin-top: 12px;
}

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

.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: 500;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.optional {
  font-weight: 400;
  color: rgba(136,133,170,0.6);
}

.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-l);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136,133,170,0.5);
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius);
}
.form-success.visible { display: block; }

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald);
  margin: 0 auto 24px;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(136,133,170,0.5);
  font-family: var(--mono);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 32px 80px;
    gap: 60px;
    min-height: auto;
  }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; }
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item { border-right: none; border-bottom: 1px solid var(--border); }
  .number-item:last-child, .number-item:nth-child(even) { border-right: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
  .step { grid-template-columns: 60px 1fr; }
  .step-icon { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { display: none; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
