/* ===================================================================
   AstraWorks — Design Tokens
=================================================================== */
:root {
  /* Brand colors (fixed per brief) */
  --bg: #07191E;
  --text: #FFFFFF;
  --blue: #0A63FF;
  --red: #E53935;
  --accent: #02F5A1;

  /* Derived surfaces */
  --bg-1: #0C2128;
  --bg-2: #102932;
  --bg-3: #14323D;
  --border: rgba(255,255,255,0.09);
  --border-soft: rgba(255,255,255,0.05);
  --text-muted: rgba(255,255,255,0.66);
  --text-faint: rgba(255,255,255,0.42);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

/* ===================================================================
   Reset
=================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.accent-blue { color: var(--blue); }
.accent-red { color: var(--red); }
.accent-green { color: var(--accent); }

.placeholder-text { text-decoration: underline dashed rgba(255,255,255,0.3); text-underline-offset: 3px; }

/* ===================================================================
   Typography
=================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 16px;
}
.section__title--left { text-align: left; margin: 0 0 18px; }

.section__sub {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ===================================================================
   Buttons
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: #07191E;
  box-shadow: 0 0 0 0 rgba(2,245,161,0.5);
}
.btn--accent:hover { box-shadow: 0 0 24px rgba(2,245,161,0.35); transform: translateY(-1px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { background: #2c7aff; transform: translateY(-1px); }

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }

.btn--ghost {
  color: var(--text-muted);
  padding: 10px 14px;
}
.btn--ghost:hover { color: var(--text); }

.btn--block { width: 100%; margin-top: 6px; }

/* ===================================================================
   Navbar
=================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,25,30,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(7,25,30,0.88);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { height: 34px; width: auto; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 6px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(7,25,30,0.97) 0%,
      rgba(7,25,30,0.93) 30%,
      rgba(7,25,30,0.70) 55%,
      rgba(7,25,30,0.30) 100%),
    linear-gradient(0deg,
      rgba(7,25,30,0.95) 0%,
      rgba(7,25,30,0.10) 28%,
      rgba(7,25,30,0) 55%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero__headline {
  font-size: clamp(34px, 4.6vw, 56px);
  margin: 18px 0 22px;
}

.hero__sub {
  color: var(--text-muted);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__sub em { color: var(--text); font-style: normal; font-weight: 600; }

.hero__actions { display: flex; gap: 14px; margin-bottom: 42px; flex-wrap: wrap; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.hero__tags li { display: flex; align-items: center; gap: 7px; }
.hero__tags .icon { width: 14px; height: 14px; fill: var(--accent); flex-shrink: 0; }

/* Code editor mockup (hero signature element) */
.hero__visual { position: relative; }

.editor {
  position: relative;
  z-index: 2;
  background: #0A1F25;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  overflow: hidden;
}

.editor__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #0D252C;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #FF5F57; }
.dot--yellow { background: #FEBC2E; }
.dot--green { background: #28C840; }
.editor__filename {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.editor__body {
  padding: 22px 20px 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  min-height: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cfe8e2;
}

.editor__cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.editor__glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(2,245,161,0.18), transparent 70%);
  top: -60px; right: -60px;
  z-index: 1;
  pointer-events: none;
}

/* token colors used by JS-typed code */
.tok-kw { color: var(--blue); }
.tok-fn { color: var(--accent); }
.tok-str { color: #ffb86b; }
.tok-com { color: var(--text-faint); font-style: italic; }
.tok-var { color: #ff8a8a; }
.tok-red { color: var(--red); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.6s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ===================================================================
   Sections (generic)
=================================================================== */
.section { padding: 110px 0; }
.section--dark { background: var(--bg-1); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

/* ===================================================================
   Services
=================================================================== */
.service-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: var(--bg-3);
}
.service-card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg { width: 22px; height: 22px; }
.icon-blue { background: rgba(10,99,255,0.14); }
.icon-blue svg { fill: var(--blue); }
.icon-red { background: rgba(229,57,53,0.14); }
.icon-red svg { fill: var(--red); }
.icon-accent { background: rgba(2,245,161,0.14); }
.icon-accent svg { fill: var(--accent); }

.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ===================================================================
   Why AstraWorks — stats
=================================================================== */
.stats-grid { text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

/* ===================================================================
   Featured Projects
=================================================================== */
.projects-grid { margin-top: 10px; }

.project-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -20px rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.18);
}

.project-card__link-wrap {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.project-card__media {
  height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.project-card__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card__media img {
  transform: scale(1.06);
}
.project-card__media-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,
    rgba(7,25,30,0.88) 0%,
    rgba(7,25,30,0.30) 50%,
    rgba(7,25,30,0.10) 100%);
}
.project-card__media--blue .project-card__media-scrim {
  background: linear-gradient(135deg,rgba(10,99,255,0.45) 0%,rgba(7,25,30,0.85) 100%);
}
.project-card__media--red .project-card__media-scrim {
  background: linear-gradient(135deg,rgba(229,57,53,0.45) 0%,rgba(7,25,30,0.85) 100%);
}
.project-card__media--accent .project-card__media-scrim {
  background: linear-gradient(135deg,rgba(2,245,161,0.30) 0%,rgba(7,25,30,0.85) 100%);
}

.project-card__tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(7,25,30,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}

.project-card__body { padding: 24px; }
.project-card__body h3 { font-size: 20px; margin-bottom: 8px; }
.project-card__body p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; line-height: 1.6; }
.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s ease;
}
.project-card:hover .project-card__cta { gap: 10px; }

/* ===================================================================
   About — full-bleed split layout
=================================================================== */
.about {
  padding: 0;
  overflow: hidden;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.about__media {
  position: relative;
  overflow: hidden;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s ease;
}
.about__media:hover img { transform: scale(1.03); }
.about__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(7,25,30,0) 60%,
    rgba(7,25,30,0.7) 100%);
  pointer-events: none;
}
.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--bg-1);
}
.about__content p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; line-height: 1.75; }
.about__stats {
  display: flex;
  gap: 32px;
  margin: 28px 0 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.about__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__stat span {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-top: 2px;
  display: block;
}
.about__loc {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.about__loc .icon { width: 16px; height: 16px; fill: var(--accent); }

/* ===================================================================
   Process Timeline
=================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 50px;
}
.timeline__line {
  display: none;
}
.timeline__step {
  position: relative;
  padding: 26px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.timeline__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bg-1);
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 600;
}
.timeline__step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline__step p { color: var(--text-muted); font-size: 14px; }

/* ===================================================================
   Testimonials slider
=================================================================== */
.testimonials { background: var(--bg); }
.slider { max-width: 760px; margin: 0 auto; }
.slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.65,0,.35,1);
}
.testimonial {
  min-width: 100%;
  text-align: center;
  padding: 0 10px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 26px;
}
.testimonial blockquote::before { content: "“"; }
.testimonial blockquote::after { content: "”"; }
.testimonial__name { display: block; font-weight: 600; }
.testimonial__role { display: block; color: var(--text-faint); font-size: 13.5px; margin-top: 2px; }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}
.slider__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.slider__btn:hover { border-color: var(--accent); background: rgba(2,245,161,0.08); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider__dots button.active { background: var(--accent); transform: scale(1.3); }

/* ===================================================================
   Contact
=================================================================== */
.contact__head { margin-bottom: 50px; }
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 6px; }
.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-soft);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.contact__row:hover { padding-left: 8px; color: var(--accent); }
.contact__row .icon { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }
.contact__row strong { display: block; font-size: 13px; color: var(--text-faint); font-weight: 500; font-family: var(--font-mono); }

.contact__socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social-btn svg { width: 17px; height: 17px; fill: var(--text-muted); }
.social-btn:hover { border-color: var(--accent); background: rgba(2,245,161,0.08); transform: translateY(-2px); }
.social-btn:hover svg { fill: var(--accent); }

.contact__form h3 { font-size: 19px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; }
.form-field input[type="file"] { padding: 9px 14px; color: var(--text-faint); }

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-faint);
  min-height: 18px;
}
.form-note.success { color: var(--accent); }

/* ===================================================================
   Careers
=================================================================== */
.careers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.careers p { color: var(--text-muted); margin-bottom: 18px; }
.careers__list { display: flex; flex-direction: column; gap: 10px; }
.careers__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.careers__list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===================================================================
   Footer
=================================================================== */
.footer {
  background: #051116;
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__logo { height: 36px; margin-bottom: 14px; }
.footer__tag { color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; margin-bottom: 18px; }

.footer__col h4 {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a, .footer__col span {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
}

/* ===================================================================
   Scroll reveal
=================================================================== */
.reveal-up {
  opacity: 1;
  transform: none;
}
.js-reveal .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.js-reveal .reveal-up.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; min-height: auto; }
  .about__media { height: 420px; }
  .about__content { padding: 56px 40px; }
  .contact__grid, .careers__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: rgba(7,25,30,0.98);
    padding: 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav.menu-open .nav__cta {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(76px + 230px);
    left: 0; right: 0;
    padding: 0 28px 24px;
    background: rgba(7,25,30,0.98);
  }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===================================================================
   Back to top
=================================================================== */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 700;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(2,245,161,0.3);
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ===================================================================
   Active nav link
=================================================================== */
.nav__links a.active { color: var(--text); }

/* ===================================================================
   Smooth icon SVG fills — global
=================================================================== */
svg { fill: currentColor; }
.icon { display: inline-block; width: 18px; height: 18px; vertical-align: middle; flex-shrink: 0; }

/* ===================================================================
   Select arrow styling
=================================================================== */
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-field select option { background: #0C2128; }

/* ===================================================================
   File input polish
=================================================================== */
.form-field input[type="file"] {
  cursor: pointer;
}
.form-field input[type="file"]::file-selector-button {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 10px;
  transition: border-color 0.2s;
}
.form-field input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ===================================================================
   Section separators (subtle, avoids abrupt cuts between sections)
=================================================================== */
.section--dark + .section:not(.section--dark),
.section:not(.section--dark) + .section--dark {
  border-top: 1px solid var(--border-soft);
}

/* ===================================================================
   Tooltip on placeholder social links
=================================================================== */
.social-btn[title] { position: relative; }
