/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: #090d12;
  color: #f5f7fa;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #27313d;
  background: #090d12;
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #d7dde5;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #45e0c1;
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 77px);
  display: flex;
  align-items: center;
  padding: 50px 0;
  background:
    radial-gradient(circle at 75% 30%, #12332f 0, transparent 32rem), #090d12;
}

.hero-content {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #45e0c1;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: #45e0c1;
}

.hero-intro {
  max-width: 720px;
  margin: 32px 0 0;
  color: #c7d0da;
  font-size: 1.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 13px 22px;
  border: 2px solid #45e0c1;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: #45e0c1;
  color: #07100e;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #75ead3;
  border-color: #75ead3;
}

.button-secondary {
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #16201f;
}

/* ---------- Services ---------- */

.services-section {
  padding: 24px 0 80px;
  background: #101720;
  border-top: 1px solid #27313d;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-intro {
  margin: 24px 0 0;
  color: #c7d0da;
  font-size: 1.125rem;
  line-height: 1.7;
}

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

.service-card {
  padding: 32px;
  background: #18222e;
  border: 1px solid #354456;
  border-radius: 8px;
}

.service-card:hover {
  border-color: #45e0c1;
}

.service-number {
  display: block;
  margin-bottom: 24px;
  color: #45e0c1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: #d7dde5;
  line-height: 1.75;
}

/* ---------- Portfolio ---------- */

.portfolio-section {
  padding: 24px 0 80px;
  background: #090d12;
  border-top: 1px solid #27313d;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #141d28;
  border: 1px solid #354456;
  border-radius: 8px;
}

.project-card:hover {
  border-color: #45e0c1;
}

.project-category {
  margin-bottom: 16px;
  color: #45e0c1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.7rem;
}

.project-card p {
  margin: 0 0 24px;
  color: #d7dde5;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tags span {
  padding: 5px 10px;
  background: #253241;
  border: 1px solid #405268;
  border-radius: 4px;
  color: #e5edf5;
  font-size: 0.8rem;
}

.project-link {
  display: inline-block;
  margin-top: 24px;
  color: #45e0c1;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- About ---------- */

.about-section {
  padding: 24px 0 80px;
  background: #101720;
  border-top: 1px solid #27313d;
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  margin: 0 0 24px;
  color: #d7dde5;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-highlights {
  padding: 32px;
  background: #18222e;
  border: 1px solid #354456;
  border-radius: 8px;
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid #354456;
}

.highlight:first-child {
  padding-top: 0;
}

.highlight:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.highlight strong {
  color: #45e0c1;
  font-size: 1.35rem;
}

.highlight span {
  color: #d7dde5;
}

/* ---------- Contact ---------- */

.contact-section {
  padding: 24px 0 80px;
  background: #090d12;
  border-top: 1px solid #27313d;
}

.contact-content {
  max-width: 800px;
}

.contact-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.contact-content > p:not(.eyebrow) {
  margin: 24px 0;
  color: #d7dde5;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-content .button {
  margin-top: 12px;
}

.contact-email a {
  color: #45e0c1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Contact Form ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 650px;
  margin-top: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: #d7dde5;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #18222e;
  color: #f5f7fa;
  border: 1px solid #405268;
  border-radius: 5px;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #45e0c1;
  outline-offset: 2px;
  border-color: #45e0c1;
}

.contact-form .button {
  align-self: flex-start;
  cursor: pointer;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0;
  background: #101720;
  border-top: 1px solid #354456;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-content strong {
  color: #ffffff;
  font-size: 1.15rem;
}

.footer-content p {
  margin: 6px 0 0;
  color: #c7d0da;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: #d7dde5;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #45e0c1;
}

.footer-content .copyright {
  color: #aebbc9;
  font-size: 0.85rem;
}

/* ---------- Case Studies ---------- */

.case-study {
  padding: 32px 0 100px;
  background: #090d12;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #45e0c1;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.case-study-header {
  max-width: 850px;
  margin-bottom: 64px;
}

.case-study-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.case-study-subtitle {
  margin: 24px 0;
  color: #d7dde5;
  font-size: 1.3rem;
  line-height: 1.7;
}

.case-study-content {
  max-width: 850px;
}

.case-study-content section {
  margin-bottom: 56px;
}

.case-study-content h2 {
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: #ffffff;
  font-size: 2rem;
  border-bottom: 1px solid #354456;
}

.case-study-content h3 {
  margin: 32px 0 12px;
  color: #45e0c1;
  font-size: 1.35rem;
}

.case-study-content p {
  margin: 0 0 20px;
  color: #d7dde5;
  font-size: 1.05rem;
  line-height: 1.8;
}

.case-study-content .button {
  margin-top: 16px;
}

/* ---------- Case Study Diagrams ---------- */

.case-study-figure {
  margin: 0 0 56px;
}

.case-study-figure img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
}

.case-study-figure figcaption {
  margin-top: 8px;
  color: #8d99a8;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* Conceptual case study illustrations */

.case-study-illustration {
  margin: 20px 0 24px;
}

.case-study-illustration img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0;
  border-radius: 10px;
}

.case-study-illustration figcaption {
  max-width: 800px;
  text-align: center;
  margin-top: 6px;
}

/* Portrait YouTube demonstration */

.case-study-video-embed {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 20;
  margin: 24px auto 0;
  border: 1px solid #354456;
  border-radius: 10px;
  overflow: hidden;
  background: #090d12;
}

.case-study-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 10px;
  color: #8d99a8;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* Wotsin screenshot gallery */

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.screenshot-gallery figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.screenshot-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #354456;
  border-radius: 10px;
}

.screenshot-gallery figcaption {
  margin-top: 10px;
  color: #aebbc9;
  font-size: 0.85rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  html {
    scroll-padding-top: 125px;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-content {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
    gap: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-intro {
    font-size: 1.1rem;
  }

  .services-section {
    padding: 16px 0 60px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px;
  }

  .portfolio-section {
    padding: 16px 0 60px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 24px;
  }

  .about-section,
  .contact-section {
    padding: 16px 0 60px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-highlights {
    padding: 24px;
  }

  .about-text p {
    font-size: 1rem;
  }

  .site-footer {
    padding: 32px 0;
  }

  .footer-links {
    gap: 12px 20px;
  }

  .case-study {
    padding: 24px 0 60px;
  }

  .case-study-header {
    margin-bottom: 40px;
  }

  .case-study-subtitle {
    font-size: 1.1rem;
  }

  .case-study-content h2 {
    font-size: 1.65rem;
  }

  .case-study-content section {
    margin-bottom: 40px;
  }

  .screenshot-gallery {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .screenshot-gallery figure {
    flex: 0 0 65%;
    scroll-snap-align: start;
  }
}
