:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
  --blue: #0ea5e9;
  --indigo: #4f46e5;
  --dark: #111827;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  --radius: 32px;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px clamp(20px, 5vw, 70px);

  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 22px;

  color: #334155;
  font-weight: 650;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;

  border: 0;
  background: #ffffff;

  border-radius: 14px;
  padding: 8px 12px;

  font-size: 22px;
  cursor: pointer;
}

/* Layout */

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px clamp(20px, 4vw, 48px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;

  color: var(--blue);

  font-weight: 800;
  font-size: 0.78rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 55px;
  align-items: center;

  min-height: calc(100vh - 72px);
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 12px 0 20px;

  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.section-heading h2,
.about h2,
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.lead {
  max-width: 680px;

  color: #475569;

  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 28px;
}

.hero-stack {
  position: relative;
  height: 690px;
}

.hero-stack img {
  position: absolute;

  width: 270px;

  border: 10px solid #111827;
  border-radius: 38px;

  background: #111827;
  box-shadow: var(--shadow);
}

.hero-stack img:nth-child(1) {
  left: 8%;
  top: 90px;
  z-index: 3;
}

.hero-stack img:nth-child(2) {
  left: 36%;
  top: 0;
  z-index: 2;
}

.hero-stack img:nth-child(3) {
  left: 58%;
  top: 160px;
  z-index: 1;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: 999px;

  padding: 14px 22px;

  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);

  font-weight: 800;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #ffffff;
}

.button.small {
  padding: 11px 16px;
  font-size: 0.92rem;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;

  padding-top: 18px;
}

.stats div {
  padding: 28px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--soft-shadow);
}

.stats strong {
  display: block;
  font-size: 1.5rem;
}

.stats span {
  color: var(--muted);
}

/* Section Headings */

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

/* Projects */

.project {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: center;

  margin: 28px 0 48px;
  padding: 34px;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 44px;

  box-shadow: var(--shadow);
}

.project-dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.project-blue {
  background: linear-gradient(135deg, #e0f2fe, #ffffff);
}

.project-warm {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.project-card {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.tag {
  display: inline-flex;

  padding: 8px 12px;

  border-radius: 999px;

  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;

  font-size: 0.86rem;
  font-weight: 850;
}

.project-dark .tag {
  background: rgba(255, 255, 255, 0.12);
  color: #bae6fd;
}

.project h3 {
  margin: 14px 0 16px;

  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.07em;
}

.project p,
.about p,
.contact p {
  color: #475569;

  font-size: 1.08rem;
  line-height: 1.65;
}

.project-dark p,
.project-dark li {
  color: #cbd5e1;
}

.project ul {
  padding-left: 20px;

  color: #334155;

  line-height: 1.8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 20px;
}

.chips span {
  padding: 8px 11px;

  border-radius: 999px;

  background: #f1f5f9;
  color: #334155;

  font-size: 0.86rem;
  font-weight: 750;
}

.project-dark .chips span {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.project-links {
  margin-top: 18px;
}

/* Phone Mockups */

.phone-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  overflow-x: auto;

  padding: 18px 8px 24px;

  scrollbar-width: thin;
}

.phone {
  flex: 0 0 202px;

  border: 0;
  border-radius: 36px;

  padding: 8px;

  background: #0f172a;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.phone:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.phone img {
  width: 100%;
  height: 430px;

  object-fit: cover;
  object-position: top;

  border-radius: 28px;
}

.phone-row.five .phone {
  flex-basis: 170px;
}

.phone-row.five .phone img {
  height: 360px;
}

.phone-row.two .phone {
  flex-basis: 230px;
}

.phone-row.two .phone img {
  height: 490px;
}

/* Platforms */

.platforms {
  padding-top: 64px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.platform-grid div {
  padding: 28px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--soft-shadow);
}

.platform-grid h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.platform-grid p {
  color: #475569;
  line-height: 1.55;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-card,
.contact-form {
  padding: 28px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--soft-shadow);
}

.contact-links,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 20px;
}

.contact-links a,
.socials a {
  padding: 12px 14px;

  background: #f1f5f9;

  border-radius: 16px;

  font-weight: 750;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-links a:hover,
.socials a:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  border: 1px solid var(--line);
  border-radius: 18px;

  padding: 15px 16px;

  background: #f8fafc;
  color: var(--text);

  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .g-recaptcha {
  margin-top: 4px;
  margin-bottom: 4px;
}

.form-note {
  margin: 0 !important;

  color: var(--muted) !important;

  font-size: 0.9rem !important;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;

  padding: 34px clamp(20px, 5vw, 70px);

  border-top: 1px solid var(--line);

  color: var(--muted);
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a:hover {
  color: var(--blue);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(2, 6, 23, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 88vh;

  border-radius: 32px;

  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;

  width: 46px;
  height: 46px;

  border: 0;
  border-radius: 50%;

  background: #ffffff;

  font-size: 30px;

  cursor: pointer;
}

/* Reveal Animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.14s;
}

/* Tablet */

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

  .site-nav {
    position: absolute;
    top: 62px;
    right: 20px;

    display: none;
    flex-direction: column;

    padding: 18px;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 20px;

    box-shadow: var(--shadow);
  }

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

  .hero,
  .project,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    height: 520px;
  }

  .hero-stack img {
    width: 205px;
  }

  .hero-stack img:nth-child(1) {
    left: 0;
    top: 80px;
  }

  .hero-stack img:nth-child(2) {
    left: 29%;
    top: 0;
  }

  .hero-stack img:nth-child(3) {
    left: 55%;
    top: 130px;
  }

  .stats,
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project {
    padding: 24px;
  }

  .phone {
    flex-basis: 180px;
  }

  .phone img {
    height: 380px;
  }
}

/* Mobile */

@media (max-width: 560px) {
  .section {
    padding: 64px 18px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-stack {
    height: 480px;
  }

  .hero-stack img {
    width: 180px;
    border-width: 7px;
  }

  .stats,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    flex-basis: 165px;
  }

  .phone img {
    height: 350px;
  }

  .phone-row.five .phone {
    flex-basis: 155px;
  }

  .phone-row.five .phone img {
    height: 330px;
  }

  .phone-row.two .phone {
    flex-basis: 175px;
  }

  .phone-row.two .phone img {
    height: 370px;
  }

  .footer {
    font-size: 0.9rem;
  }

  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left top;
  }
}