/* ---------------------------------------------------
   GoDigiSol — Design tokens
--------------------------------------------------- */
:root {
  --ink: #10151c;
  --blue-deep: #0f2a47;
  --blue-mid: #16385c;
  --blue-line: #4a6a88;
  --blue-line-soft: rgba(244, 246, 243, 0.14);
  --paper: #f4f6f3;
  --paper-dim: #e6e9e3;
  --amber: #f4a93f;
  --amber-dark: #c97f1e;
  --muted: #5c6875;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --max-w: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }

a { color: inherit; }

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

section { padding: 108px 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--amber-dark);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-primary { background: var(--amber); color: var(--blue-deep); }
.btn-primary:hover { background: var(--amber-dark); }

.btn-outline-dark { border-color: var(--blue-deep); color: var(--blue-deep); background: transparent; }
.btn-outline-dark:hover { background: var(--blue-deep); color: var(--paper); }

.btn-outline-light { border-color: var(--blue-line-soft); color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-dim);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  color: var(--paper);
  padding: 84px 0 96px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blue-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 10%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-copy .eyebrow { color: var(--amber); }
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-copy p.lead {
  color: #c9d6e2;
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--blue-line-soft);
  padding-top: 24px;
}
.hero-meta div { font-size: 0.92rem; color: #a9bccb; }
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 600;
}

.hero-art { width: 100%; }
.hero-art svg { width: 100%; height: auto; opacity: 0;
  animation: fadeUp 900ms ease forwards 200ms; }
.hero-copy > * { opacity: 0; animation: fadeUp 700ms ease forwards; }
.hero-copy .eyebrow { animation-delay: 60ms; }
.hero-copy h1 { animation-delay: 140ms; }
.hero-copy p.lead { animation-delay: 220ms; }
.hero-copy .hero-actions { animation-delay: 300ms; }
.hero-copy .hero-meta { animation-delay: 380ms; }

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

@media (prefers-reduced-motion: reduce) {
  .hero-art svg, .hero-copy > * { animation: none; opacity: 1; }
}

/* ---------------------------------------------------
   Services
--------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-panel {
  padding: 44px 40px;
  border-left: 1px solid var(--paper-dim);
}
.service-panel:first-child { border-left: none; }
.service-panel .icon {
  width: 46px; height: 46px;
  color: var(--amber-dark);
  margin-bottom: 20px;
}
.service-panel h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-panel > p { margin-bottom: 24px; }
.service-panel ul { list-style: none; margin: 0; padding: 0; }
.service-panel li {
  padding: 11px 0;
  border-top: 1px solid var(--paper-dim);
  font-size: 0.98rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.service-panel li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  flex: none;
  transform: translateY(-1px);
}

/* ---------------------------------------------------
   Process
--------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: var(--paper-dim);
}
.process-step { position: relative; padding-right: 24px; }
.process-step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--blue-deep);
  color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  position: relative; z-index: 1;
  margin-bottom: 18px;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; }

/* ---------------------------------------------------
   Why us
--------------------------------------------------- */
.why-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why-wrap .section-head { margin-bottom: 0; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--paper-dim);
}
.why-list li:last-child { border-bottom: 1px solid var(--paper-dim); }
.why-list .metric {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--amber-dark);
  font-weight: 600;
}
.why-list h4 { margin-bottom: 4px; font-size: 1.05rem; }
.why-list p { margin: 0; font-size: 0.95rem; }

/* ---------------------------------------------------
   Tech stack
--------------------------------------------------- */
.stack {
  background: var(--blue-deep);
  color: var(--paper);
}
.stack .section-head p { color: #a9bccb; }
.stack .eyebrow { color: var(--amber); }
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  border: 1px solid var(--blue-line-soft);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.92rem;
  color: #dce6ee;
}

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info dl {
  margin: 28px 0 0;
}
.contact-info dt {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info dd {
  margin: 0 0 26px;
  font-size: 1.15rem;
}
.contact-info dd a { text-decoration: none; border-bottom: 1.5px solid var(--amber); }
.contact-info dd a:hover { color: var(--amber-dark); }

form.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-dim);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: -4px; }
.form-status { font-size: 0.9rem; margin-top: 4px; min-height: 1.2em; }
.form-status.success { color: #1c7c4d; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #9aa5af;
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-top .brand span { color: var(--paper); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #9aa5af; font-size: 0.92rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-panel { border-left: none; border-top: 1px solid var(--paper-dim); }
  .service-panel:first-child { border-top: none; }
  .process-list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process-list::before { display: none; }
  .why-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--paper-dim);
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { width: 100%; padding: 16px 28px; border-top: 1px solid var(--paper-dim); }
  .main-nav .btn { margin: 16px 28px; }
  .hero-meta { gap: 18px; }
  .process-list { grid-template-columns: 1fr; }
}
