:root {
  --bg: #06080c;
  --bg-soft: #0d1117;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f5f7fb;
  --muted: #a5adba;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #1f6fff;
  --accent-2: #ff5a1f;
  --accent-3: #0066ff;
  --shadow: 0 24px 80px rgba(31, 111, 255, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 15%, rgba(255, 90, 31, 0.1), transparent 26rem),
    var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 30px rgba(31, 111, 255, 0.45);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  letter-spacing: -0.03em;
}

.brand-text small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.67rem;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.85rem;
  transition: color 0.15s, border-color 0.15s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px auto;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(31, 111, 255, 0.2);
  filter: blur(90px);
  border-radius: 50%;
  right: 12%;
  top: 22%;
  pointer-events: none;
}

.hero-logo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 70px rgba(31, 111, 255, 0.35);
  margin-bottom: 1.4rem;
}

.eyebrow {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-copy,
.section-heading p,
.cta p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #030913;
  box-shadow: 0 18px 50px rgba(31, 111, 255, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.trust-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-row span {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(31, 111, 255, 0.38), transparent 34%, rgba(255, 90, 31, 0.22));
  opacity: 0.45;
  pointer-events: none;
}

.browser-bar,
.dashboard-preview,
.chart-bars,
.preview-footer {
  position: relative;
  z-index: 1;
}

.browser-bar {
  display: flex;
  gap: 0.45rem;
  padding-bottom: 1rem;
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.dashboard-preview > div,
.work-card,
.card,
.timeline article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dashboard-preview > div {
  padding: 1rem;
}

.mini-label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.dashboard-preview h3 {
  font-size: 2rem;
  margin: 0;
}

.chart-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 0.8rem;
  padding: 2rem 0.75rem 1rem;
}

.chart-bars span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(31, 111, 255, 0.1));
}

.chart-bars span:nth-child(4) {
  background: linear-gradient(180deg, var(--accent-2), rgba(255, 90, 31, 0.1));
}

.preview-footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.preview-footer p {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-heading.left {
  text-align: left;
  margin: 0;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cards.four {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cards.five {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.cards.five article:nth-child(1),
.cards.five article:nth-child(2),
.cards.five article:nth-child(3) {
  grid-column: span 2;
}

.cards.five article:nth-child(4),
.cards.five article:nth-child(5) {
  grid-column: span 3;
}

.svc-logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.svc-logo-aws {
  height: 200px;
  width: auto;
}

.svc-logo-cf {
  height: 200px;
  width: auto;
}

.svc-logo-clover {
  height: 200px;
  width: auto;
}

.card,
.work-card,
.timeline article {
  padding: 1.4rem;
}

.card p,
.work-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(31, 111, 255, 0.14);
  color: var(--accent-3);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.text-link {
  color: var(--accent-3);
  font-weight: 800;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.work-card {
  cursor: pointer;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0d1117 0%, rgba(31, 111, 255, 0.12) 100%);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.04);
}

.work-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.work-card:hover .work-thumb-overlay {
  opacity: 1;
}

.work-thumb-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ── Project modal ───────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  z-index: 1;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.modal-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0d1117 0%, rgba(31, 111, 255, 0.14) 100%);
  overflow: hidden;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.modal-link {
  display: inline-flex;
  text-align: center;
}

.work-card span {
  color: var(--accent-3);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #031014;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background:
    radial-gradient(circle at left, rgba(31, 111, 255, 0.2), transparent 40%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 3rem;
}

.cta div {
  max-width: 760px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 111, 255, 0.7);
}

.form-note {
  min-height: 24px;
  color: var(--accent-3);
  margin: 0;
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer div {
  display: flex;
  gap: 1rem;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 74px 1rem auto 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(9, 12, 17, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    display: none;
  }

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

  .hero,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
  }

  .cards.three,
  .cards.four,
  .work-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cards.five {
    grid-template-columns: 1fr;
  }

  .cards.five article:nth-child(n) {
    grid-column: span 1;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3.4rem;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .chart-bars {
    height: 170px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
