/* Our reusable colors and page defaults */
:root {
  color-scheme: dark;
  --background: #0b1016;
  --surface: #121b25;
  --text: #f1f5f9;
  --muted: #aab8c8;
  --accent: #78d4ff;
  --border: #293846;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

/* Shared page width */
header,
main,
footer {
  width: min(1120px, 90%);
  margin-inline: auto;
}

/* Brand and navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}

header > a {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Opening section */
main > section:first-child {
  padding: 110px 0 100px;
  background:
    radial-gradient(
      ellipse at top right,
      rgba(120, 212, 255, 0.12),
      transparent 65%
    );
}

main > section:first-child > p:first-child {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2 {
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 24px 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

p {
  max-width: 640px;
  color: var(--muted);
}

main > section:first-child > p:last-of-type {
  font-size: 1.15rem;
}

main > section:first-child > a {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

main > section:first-child > a:hover {
  background: #b3e7ff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Services */
section {
  scroll-margin-top: 24px;
}

#services {
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

h2 {
  max-width: 700px;
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3rem);
}

ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

li {
  padding: 24px;
  border-top: 2px solid var(--accent);
  background: var(--background);
  border-radius: 0 0 8px 8px;
}

/* Founder story and footer */
#story {
  padding-block: 100px;
}

footer {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.8rem;
}

/* Adjust the layout for smaller screens */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  main > section:first-child {
    padding-block: 72px;
  }

  #services {
    padding: 28px 22px;
  }

  ul {
    grid-template-columns: 1fr;
  }

  #story {
    padding-block: 72px;
  }
}

/* Respect visitors who prefer less animation */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main > section:first-child > a {
    transition: none;
  }

  main > section:first-child > a:hover {
    transform: none;
  }
}
/* Portfolio */
#work {
  padding-top: 100px;
}

.eyebrow,
.project-type {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.project-card h3 {
  margin: 12px 0 20px;
  font-size: 2rem;
  line-height: 1.2;
}

.project-details {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.project-details h4 {
  margin: 0 0 24px;
  font-size: 1rem;
}

.project-details dl {
  margin: 0;
}

.project-details dt {
  margin-top: 18px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.project-details dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-note {
  display: block;
  margin-top: 28px;
  color: var(--accent);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  #work {
    padding-top: 72px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }

  .project-details {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}
/* Service package details */
#services li strong {
  display: block;
  font-size: 1.05rem;
}

#services li p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.service-note {
  max-width: 760px;
  margin-top: 28px;
  font-size: 0.85rem;
}
/* How it works */
#process {
  padding-top: 100px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.process-steps li {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.step-number {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.process-steps h3 {
  margin: 20px 0 12px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.process-steps p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  #process {
    padding-top: 72px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}