/* ======================================================
   Bitgnist AS — Landing Page Styles
   ====================================================== */

/* ---- Custom Properties ---- */
:root {
  --navy: #070E1B;
  --navy-mid: #0C1829;
  --royal: #1E40AF;
  --bright: #3B82F6;
  --sky: #60A5FA;
  --ice: #F0F5FF;
  --white: #FFFFFF;
  --slate: #0F172A;
  --gray: #475569;
  --light-gray: #94A3B8;
  --text-on-dark: #CBD5E1;
  --amber: #F59E0B;
  --amber-deep: #D97706;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max-w: 1140px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

ul {
  list-style: none;
}

::selection {
  background: var(--bright);
  color: var(--white);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--gray);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--amber-deep);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

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

.btn-ghost {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ---- Top Accent Line ---- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--bright), var(--amber));
  z-index: 10000;
}

/* ======================================================
   Header
   ====================================================== */
.header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(7, 14, 27, 0.97);
  padding: 0.65rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--bright), var(--amber));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-btn {
  padding: 4px 14px;
  border-radius: 17px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.75);
}

/* Header Right Group */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease), color 0.3s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav a:hover {
  color: var(--amber);
}

/* ======================================================
   Hero
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding: 7rem 0 4rem;
}

/* Aurora / Northern lights effect */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(30, 64, 175, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 25% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  animation: aurora 12s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    opacity: 0.7;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 1;
    filter: hue-rotate(8deg);
  }
  100% {
    opacity: 0.8;
    filter: hue-rotate(-5deg);
  }
}

/* Grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Dot grid + glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.1);
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  animation: drift 25s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: -6%;
  border-color: rgba(30, 64, 175, 0.12);
  background: radial-gradient(circle, rgba(30, 64, 175, 0.03) 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 15%;
  border-color: rgba(245, 158, 11, 0.08);
  animation: drift 18s ease-in-out infinite 3s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(15px, -20px) rotate(3deg); }
  50%      { transform: translate(-10px, 15px) rotate(-2deg); }
  75%      { transform: translate(20px, 10px) rotate(4deg); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  font-weight: 800;
  background: linear-gradient(160deg, #FFFFFF 30%, var(--sky) 80%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-on-dark);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn-primary {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.hero .btn-ghost {
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.2);
  animation: bob 2.5s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---- Hero load animation ---- */
.hero-badge,
.hero h1,
.hero p,
.hero-actions {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s var(--ease) forwards;
}

.hero-badge     { animation-delay: 0.1s; }
.hero h1        { animation-delay: 0.25s; }
.hero p         { animation-delay: 0.45s; }
.hero-actions   { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   Why Choose Us
   ====================================================== */
.why-us {
  background: var(--ice);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bright), var(--amber));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.06);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--royal);
  transition: all 0.4s var(--ease);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--royal), var(--bright));
  color: var(--white);
  transform: scale(1.05);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.925rem;
  line-height: 1.65;
}

/* ======================================================
   Services
   ====================================================== */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
  border-color: rgba(59, 130, 246, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--royal), var(--bright));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.service-card > p {
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ======================================================
   Process / How We Work
   ====================================================== */
.process {
  background: var(--ice);
}

.process-grid {
  display: grid;
  gap: 2rem;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.process-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--bright), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.process-step p {
  font-size: 0.925rem;
  line-height: 1.65;
}

/* Process connector line (desktop) */
.process-line {
  display: none;
}

/* ======================================================
   Team
   ====================================================== */
.team {
  background: var(--white);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  background: var(--ice);
  border-radius: 24px;
  padding: 3rem 2rem;
  border: 1px solid rgba(59, 130, 246, 0.06);
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.25);
  position: relative;
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.15);
}

.team-initials {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}

.team-info p:last-child {
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 480px;
}

/* ======================================================
   Contact
   ====================================================== */
.contact {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  z-index: 1;
}

.contact-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-text h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
}

.contact-text > p {
  font-size: 1.05rem;
  color: var(--text-on-dark);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sky);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--light-gray);
  margin-bottom: 0.15rem;
}

.contact-item-value {
  color: var(--white);
  font-weight: 500;
}

.contact-item-value a {
  transition: color 0.3s ease;
}

.contact-item-value a:hover {
  color: var(--amber);
}

.contact-cta {
  margin-top: 0.5rem;
}

/* ======================================================
   Footer
   ====================================================== */
.footer {
  background: var(--navy-mid);
  padding: 4rem 0 0;
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--light-gray);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--light-gray);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--sky);
  flex-shrink: 0;
}

.footer-contact-item a {
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--light-gray);
  font-size: 0.8rem;
}

/* ======================================================
   Scroll Reveal
   ====================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s !important; }
.reveal-d2 { transition-delay: 0.16s !important; }
.reveal-d3 { transition-delay: 0.24s !important; }

/* ======================================================
   Scroll Margin (for fixed header)
   ====================================================== */
section[id] {
  scroll-margin-top: 80px;
}

/* ======================================================
   Responsive
   ====================================================== */

/* Tablet */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid .card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .services .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services .card-grid .service-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* Small desktop */
@media (min-width: 768px) {
  .team-card {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
    padding: 3rem;
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }

  .team-initials {
    font-size: 4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid .card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  .services .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services .card-grid .service-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .process-line {
    display: block;
    position: absolute;
    top: 3rem;
    left: 100%;
    width: 1.5rem;
    height: 2px;
    background: var(--bright);
    opacity: 0.2;
  }

  .process-step:last-child .process-line {
    display: none;
  }

  .section {
    padding: 6.5rem 0;
  }

  .hero h1 {
    font-size: 4.2rem;
  }
}

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

.btn:focus-visible {
  outline-offset: 4px;
}
