/* ==========================================================================
   Friday Technologies — Main Stylesheet
   Dark premium theme · Electric teal accent · Syne + DM Sans + Space Mono
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }

/* ---------- GRAIN TEXTURE OVERLAY ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Backgrounds */
  --bg:        #0A0A0B;
  --bg-2:      #0E0E10;
  --bg-3:      #131316;
  --bg-card:   #111113;

  /* Surfaces & borders */
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.12);

  /* Accent: electric teal */
  --accent:       #0AFFD1;
  --accent-dim:   rgba(10, 255, 209, 0.10);
  --accent-mid:   rgba(10, 255, 209, 0.20);
  --accent-glow:  0 0 48px rgba(10, 255, 209, 0.14);

  /* Text */
  --text:       #EEEEF2;
  --text-2:     #919199;
  --text-muted: #56565F;

  /* Type */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Tokens */
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur:       0.22s;
}

/* ---------- BASE TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

h3 { font-weight: 700; }
p  { line-height: 1.72; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}

.section {
  padding: 96px 0;
  position: relative;
}

/* ---------- EYEBROW ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- SECTION HEADER ---------- */
.section-header { margin-bottom: 60px; }

.section-title {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  letter-spacing: -0.03em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #080A09;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-mid);
}

.btn-primary:hover {
  background: #1CFFE0;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 255, 209, 0.28);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.84);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity var(--dur) var(--ease);
}

.nav-logo:hover { opacity: 0.8; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}

.nav-link:hover { color: var(--text); }

.nav-cta {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--dur) var(--ease);
}

.nav-cta:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--dur) var(--ease);
}

.nav-toggle:hover { background: var(--surface); }

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---- Hero Background Layers ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Dot grid */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 85% 80% at 40% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 40% 50%, black 0%, transparent 100%);
}

/* Aurora orbs */
.aurora-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.aurora-orb.a1 {
  width: 760px;
  height: 760px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(10, 255, 209, 0.16) 0%, transparent 65%);
  animation: aurora-1 17s ease-in-out infinite;
  animation-delay: 0.4s;
}

.aurora-orb.a2 {
  width: 620px;
  height: 620px;
  bottom: -200px;
  left: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13) 0%, transparent 65%);
  animation: aurora-2 22s ease-in-out infinite;
  animation-delay: 1.2s;
}

.aurora-orb.a3 {
  width: 520px;
  height: 520px;
  top: 28%;
  left: 32%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.09) 0%, transparent 65%);
  animation: aurora-3 28s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1);     opacity: 0.7; }
  25%       { transform: translate(-44px, 28px) scale(1.08);  opacity: 1; }
  50%       { transform: translate(28px, -44px) scale(0.93); opacity: 0.5; }
  75%       { transform: translate(52px, 18px) scale(1.06);  opacity: 0.8; }
}

@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1);     opacity: 0.6; }
  33%       { transform: translate(56px, -32px) scale(1.10); opacity: 0.9; }
  66%       { transform: translate(-32px, 48px) scale(0.90); opacity: 0.4; }
}

@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(1);     opacity: 0.4; }
  50%       { transform: translate(-52px, -36px) scale(1.18); opacity: 0.7; }
}

/* Radial vignette — pulls bg colour back over the aurora at edges */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 72% at 50% 50%, transparent 0%, var(--bg) 100%);
  opacity: 0.55;
}

/* ---- Hero Content ---- */
.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Two-column hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 104px 0 72px; /* top: clears 68px nav + breathing room */
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.1s;
}

.hero-headline {
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.28s;
}

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

.hero-sub {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  color: var(--text-2);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.48s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.66s;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
  animation-delay: 1.2s;
}

.scroll-track {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.scroll-thumb {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-fall 2.4s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes scroll-fall {
  0%   { top: -60%; opacity: 1; }
  100% { top: 110%;  opacity: 0; }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO VISUAL — Orbital sphere / data topology
   ========================================================================== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) forwards;
  animation-delay: 0.55s;
}

.vis-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  /* perspective for subtle 3-D feel on the orbits */
  perspective: 800px;
}

/* Ambient background glow */
.vis-ambient {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 50%,
    rgba(10, 255, 209, 0.11) 0%,
    rgba(139, 92, 246, 0.07) 45%,
    transparent 72%);
  animation: vis-ambient-pulse 5s ease-in-out infinite;
}

@keyframes vis-ambient-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%       { transform: scale(1.07); opacity: 1; }
}

/* Orbit rings — ellipses achieved via scaleY; each holds a travelling dot */
.vis-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(10, 255, 209, 0.14);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* dot inherits rotation → travels the ring perimeter */
}

.vis-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 18px rgba(10, 255, 209, 0.4);
}

/* Orbit 1 — horizontal ellipse, fast, teal dot */
.vis-orbit-1 {
  width: 180px;
  height: 52px;
  margin-left: -90px;
  margin-top: -26px;
  animation: orbit-spin 9s linear infinite;
}
.vis-orbit-1 .vis-dot {
  width: 7px;
  height: 7px;
}

/* Orbit 2 — tilted 58°, medium speed */
.vis-orbit-2 {
  width: 248px;
  height: 72px;
  margin-left: -124px;
  margin-top: -36px;
  animation: orbit-2 14s linear infinite reverse;
  border-color: rgba(139, 92, 246, 0.18);
}
.vis-orbit-2 .vis-dot {
  width: 5px;
  height: 5px;
  background: rgba(167, 139, 250, 0.9);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* Orbit 3 — counter-tilted, slow, subtle */
.vis-orbit-3 {
  width: 308px;
  height: 88px;
  margin-left: -154px;
  margin-top: -44px;
  animation: orbit-3 20s linear infinite;
  border-color: rgba(10, 255, 209, 0.07);
  opacity: 0.7;
}
.vis-orbit-3 .vis-dot {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 6px var(--accent);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbit-2 {
  from { transform: rotate(58deg); }
  to   { transform: rotate(418deg); }
}
@keyframes orbit-3 {
  from { transform: rotate(-52deg); }
  to   { transform: rotate(308deg); }
}

/* Central core */
.vis-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(10, 255, 209, 0.9) 0%,
    rgba(10, 255, 209, 0.35) 50%,
    transparent 100%);
  box-shadow:
    0 0 18px rgba(10, 255, 209, 0.7),
    0 0 48px rgba(10, 255, 209, 0.3);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(10, 255, 209, 0.7), 0 0 48px rgba(10, 255, 209, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 26px rgba(10, 255, 209, 0.9), 0 0 70px rgba(10, 255, 209, 0.4);
    transform: scale(1.06);
  }
}

/* Connection spurs radiating from core */
.vis-spur {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(to right, rgba(10, 255, 209, 0.35), transparent);
}

.vis-spur-1 {
  width: 68px;
  transform: translateY(-50%) rotate(25deg);
}
.vis-spur-2 {
  width: 52px;
  transform: translateY(-50%) rotate(-110deg);
}
.vis-spur-3 {
  width: 84px;
  transform: translateY(-50%) rotate(160deg);
  background: linear-gradient(to right, rgba(139, 92, 246, 0.25), transparent);
}

/* Floating scattered nodes */
.vis-node-float {
  position: absolute;
  border-radius: 50%;
  background: rgba(10, 255, 209, 0.5);
  box-shadow: 0 0 6px rgba(10, 255, 209, 0.3);
  animation: node-float ease-in-out infinite;
}

.vn1 { width: 5px; height: 5px; top: 16%;  left: 18%;  animation-duration: 6s;  animation-delay: 0s; }
.vn2 { width: 4px; height: 4px; top: 22%;  right: 14%; animation-duration: 7.5s; animation-delay: 1s;  background: rgba(139,92,246,0.55); }
.vn3 { width: 3px; height: 3px; bottom: 18%; left: 22%;  animation-duration: 5s;  animation-delay: 2s; }
.vn4 { width: 5px; height: 5px; bottom: 14%; right: 18%; animation-duration: 8s;  animation-delay: 0.5s; }
.vn5 { width: 3px; height: 3px; top: 54%;  left: 8%;  animation-duration: 6.5s; animation-delay: 1.5s; background: rgba(139,92,246,0.4); }

@keyframes node-float {
  0%, 100% { transform: translate(0, 0);    opacity: 0.6; }
  50%       { transform: translate(0, -9px); opacity: 1; }
}

/* Label badges */
.vis-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 255, 209, 0.06);
  border: 1px solid rgba(10, 255, 209, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  opacity: 0;
  animation: label-fade 1s var(--ease) forwards;
  white-space: nowrap;
}

.vl1 { top: 10%;  left: 5%;  animation-delay: 1.1s; }
.vl2 { bottom: 12%; right: 4%; animation-delay: 1.4s; }
.vl3 { top: 68%;  left: 10%; animation-delay: 1.7s; color: rgba(167,139,250,0.85); border-color: rgba(139,92,246,0.2); background: rgba(139,92,246,0.06); }

@keyframes label-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  /* gap via borders instead of gap property for seamless feel */
}

.service-card {
  background: var(--bg-card);
  padding: 44px 36px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
  overflow: hidden;
}

.service-card:last-child { border-right: none; }

/* Subtle top-glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.service-card:hover::before { opacity: 0.7; }

/* Inner glow fill */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.service-card:hover::after { opacity: 1; }

.service-card:hover .card-icon-wrap {
  color: var(--accent);
  border-color: rgba(10, 255, 209, 0.28);
  background: rgba(10, 255, 209, 0.07);
}

/* Icon */
.card-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  margin-bottom: 28px;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.78;
  flex: 1;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.card-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach-section {
  background: var(--bg);
}

/* Subtle top-of-section glow line */
.approach-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 255, 209, 0.3), transparent);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 88px;
  align-items: start;
}

.approach-left .section-title { margin-bottom: 24px; }

.approach-intro {
  font-size: 0.92rem;
  color: var(--text-2);
  max-width: 380px;
  line-height: 1.8;
}

.approach-right {
  display: flex;
  flex-direction: column;
}

.approach-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}

.approach-item:first-child { border-top: 1px solid var(--border); }

.approach-item:hover { border-color: rgba(255, 255, 255, 0.15); }
.approach-item:hover .approach-num { color: var(--accent); }

.approach-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 26px;
  transition: color 0.3s var(--ease);
}

.approach-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}

.approach-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.74;
}

/* ==========================================================================
   WORK / PRODUCTS
   ========================================================================== */
.work-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-3) 0%, var(--bg-2) 60%);
  overflow: hidden;
  position: relative;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Shimmer top-border accent */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, rgba(139,92,246,0.8) 60%, transparent 100%);
  opacity: 0.55;
}

.product-card:hover {
  border-color: rgba(10, 255, 209, 0.22);
  box-shadow: var(--accent-glow);
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
}

.product-info {
  padding: 52px 52px 52px;
  border-right: 1px solid var(--border);
}

/* Badges */
.product-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.badge-live {
  background: rgba(10, 255, 209, 0.09);
  border: 1px solid rgba(10, 255, 209, 0.24);
  color: var(--accent);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.badge-platform {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Product content */
.product-name {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.028em;
  color: var(--text);
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
  opacity: 0.85;
}

.product-desc {
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.82;
  max-width: 500px;
  margin-bottom: 28px;
}

.product-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---- App Mockup ---- */
.product-visual {
  padding: 44px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 255, 209, 0.03) 0%, transparent 60%);
}

.app-mockup {
  width: 188px;
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
}

.app-screen {
  background: var(--bg-3);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow:
    0 0 0 1px rgba(10, 255, 209, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Top bar */
.app-top-bar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, rgba(139,92,246,0.6) 50%, var(--accent) 100%);
  flex-shrink: 0;
}

.app-title-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.app-line {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
}

.app-line.lg  { width: 68%; }
.app-line.sm  { width: 42%; }

/* Progress ring */
.app-ring-wrap {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

.app-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0deg 263deg,
    rgba(255, 255, 255, 0.06) 263deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--bg-3);
  border-radius: 50%;
}

.app-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.2;
}

.app-ring-val {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.app-ring-label {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Macro bars */
.app-macros {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-macro {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.macro-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.macro-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--pct, 50%);
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.55;
}

.app-macro:first-child .macro-bar::after { opacity: 1; }

.macro-label {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bar chart */
.app-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  padding-top: 4px;
}

.app-chart-bar {
  flex: 1;
  height: var(--h, 50%);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px 2px 0 0;
}

.app-chart-bar.is-accent {
  background: var(--accent);
  opacity: 0.65;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
  background: var(--bg);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 255, 209, 0.25), transparent);
}

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

.contact-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.82;
  max-width: 420px;
}

.contact-cta-block {
  display: flex;
  flex-direction: column;
}

.contact-email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-email-link:hover {
  color: var(--accent);
  border-color: rgba(10, 255, 209, 0.4);
}

.contact-email-link svg {
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
  margin-left: 12px;
}

.contact-email-link:hover svg { transform: translateX(5px); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: avail-pulse 2.8s ease-in-out infinite;
}

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

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity var(--dur) var(--ease);
}

.footer-logo:hover { opacity: 0.75; }

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.5;
}

/* ==========================================================================
   SCROLL REVEAL SYSTEM
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  0.78s var(--ease) var(--delay, 0s),
    transform 0.78s var(--ease) var(--delay, 0s);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE — 1024px (tablets / small laptops)
   ========================================================================== */
@media (max-width: 1024px) {
  .container      { padding: 0 32px; }
  .nav-container  { padding: 0 32px; }

  /* Hero: stack at tablet */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 0 60px;
  }

  .hero-visual { justify-content: flex-start; }

  .vis-wrap {
    width: 280px;
    height: 280px;
  }

  .vis-orbit-1 { width: 148px; height: 42px; margin-left: -74px; margin-top: -21px; }
  .vis-orbit-2 { width: 202px; height: 58px; margin-left: -101px; margin-top: -29px; }
  .vis-orbit-3 { width: 250px; height: 72px; margin-left: -125px; margin-top: -36px; }
  .vis-core    { width: 42px; height: 42px; margin-left: -21px; margin-top: -21px; }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .approach-intro { max-width: 100%; }

  .product-inner {
    grid-template-columns: 1fr;
  }

  .product-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 44px 40px;
  }

  .product-visual { padding: 40px; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-sub { max-width: 100%; }
}

/* ==========================================================================
   RESPONSIVE — 768px (mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .container     { padding: 0 22px; }
  .nav-container { padding: 0 22px; }

  .section { padding: 68px 0; }

  /* -- Mobile nav -- */
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 22px 24px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.2s var(--ease) both;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links.is-open { display: flex; }

  .nav-link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-cta {
    margin-top: 10px;
    border: 1px solid var(--border);
    text-align: center;
    border-radius: 8px;
    padding: 13px;
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }

  /* -- Hero -- */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 88px 0 52px;
  }

  /* Hide visual on small phones to avoid crowding */
  .hero-visual { display: none; }

  .hero-headline { font-size: clamp(1.75rem, 8vw, 2.6rem); line-height: 1.12; }
  .hero-sub      { font-size: 0.92rem; }
  .hero-scroll   { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 26px;
  }

  .service-card:last-child { border-bottom: none; }

  /* -- Approach -- */
  .approach-grid { gap: 40px; }

  /* -- Product -- */
  .product-info   { padding: 32px 22px; }
  .product-visual { padding: 32px; }
  .product-name   { font-size: 1.5rem; }

  /* -- Contact -- */
  .contact-inner { gap: 44px; }

  /* -- Footer -- */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .footer-brand { align-items: center; }
  .footer-copy  { text-align: center; }
}

/* ==========================================================================
   RESPONSIVE — 480px (small phones)
   ========================================================================== */
@media (max-width: 480px) {
  /* headline already handled in 768 breakpoint; just ensure floor is respected */
  .hero-headline  { font-size: clamp(1.65rem, 8.5vw, 2.4rem); }

  .section-title  { font-size: clamp(1.5rem, 6.5vw, 2rem); }

  .contact-heading { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }

  .contact-email-link { font-size: 0.95rem; }

  .services-grid { border-radius: var(--radius); }

  .product-card  { border-radius: var(--radius-lg); }
}

/* ==========================================================================
   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; }

  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .hero-scroll {
    opacity: 1;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .aurora-orb { animation: none; opacity: 0.5; }
}
