:root {
  --bg: #ffffff;
  --section: #f7f7f7;
  --text: #333333;
  --muted: #666666;
  --black: #000000;
  --border: rgba(0, 0, 0, 0.08);

  --radius-lg: 18px;
  --radius-md: 14px;

  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.07);
  --shadow-button: 0 10px 28px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

/* Better tap/scroll positioning with sticky header */
section[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.logo-sur {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

.logo-prototyping {
  font-size: 12px;
  letter-spacing: 0.38em;
  color: #7a7a7a;
}

.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 13px;
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.header-actions {
  justify-self: end;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .header-actions {
    justify-self: start;
  }

  .nav {
    justify-content: flex-start;
  }
}

/* Mobile-only layout tightening (keeps desktop unchanged) */
@media (max-width: 640px) {
  .container {
    width: min(1200px, calc(100% - 32px));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo action"
      "nav nav";
    padding: 14px 0;
    gap: 10px;
  }

  .logo {
    grid-area: logo;
  }

  .header-actions {
    grid-area: action;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .nav::-webkit-scrollbar {
    height: 0;
  }

  .site-header .button {
    padding: 10px 14px;
    border-radius: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 62px 0 64px;
  }

  .hero-sur {
    font-size: clamp(66px, 16vw, 96px);
  }

  .hero-prototyping {
    letter-spacing: 0.42em;
    font-size: 16px;
  }

  .tagline-line {
    width: 40px;
  }

  .hero-cta {
    gap: 14px;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

/* Mobile header: keep logo + button on top row, nav scrollable on second row */
@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 104px;
  }

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

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "nav nav";
    padding: 12px 0;
    row-gap: 10px;
  }

  .logo {
    grid-area: logo;
  }

  .header-actions {
    grid-area: actions;
  }

  .nav {
    grid-area: nav;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 14px;
    padding-bottom: 6px;
  }

  .nav-link {
    white-space: nowrap;
  }
}

/* Sections */
.section {
  padding: 86px 0;
}

.section-alt {
  background: var(--section);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.kicker {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: #7a7a7a;
  text-transform: uppercase;
}

.center {
  text-align: center;
}

/* Hero */
.hero {
  padding: 92px 0 86px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-mark {
  margin: 0;
  line-height: 0.9;
}

.hero-sur {
  display: block;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: clamp(78px, 9.2vw, 128px);
  letter-spacing: -0.03em;
  color: var(--black);
}

.hero-prototyping {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: clamp(16px, 2.1vw, 22px);
  letter-spacing: 0.62em;
  color: #6f6f6f;
}

.sur-meaning {
  margin: 14px 0 0;
  color: #7a7a7a;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tagline-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6f6f6f;
  font-weight: 600;
}

.tagline-line {
  width: 54px;
  height: 1px;
  background: rgba(0, 0, 0, 0.16);
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 15px;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

  .hero {
    padding: 64px 0;
  }

  .hero-sur {
    font-size: clamp(58px, 16vw, 88px);
  }

  .hero-prototyping {
    letter-spacing: 0.42em;
    font-size: 16px;
  }

  .tagline-row {
    margin-top: 14px;
  }

  .tagline-line {
    width: 40px;
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 52ch;
  }

  .hero-cta {
    gap: 14px;
  }

  .hero-media {
    border-radius: 18px;
  }
}

.link {
  text-decoration: none;
  font-weight: 600;
  color: var(--black);
}

.link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-media {
  margin: 0;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Grid + Cards */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 720px) {
  .grid {
    gap: 14px;
  }

  .card {
    padding: 20px;
  }
}

.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #444;
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Who row (dividers) */
.who-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.who-item {
  padding: 18px 12px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
}

.who-item + .who-item {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.who-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  color: #3a3a3a;
  background: #fff;
}

.who-text {
  color: #666;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .who-row {
    grid-template-columns: 1fr;
  }

  .who-item + .who-item {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* How it works */
.step-card {
  position: relative;
  padding-top: 30px;
}

.step-head {
  position: relative;
  height: 54px;
  margin-bottom: 12px;
}

.step-num {
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(0, 0, 0, 0.12);
}

.step-icon {
  position: absolute;
  left: 74px;
  top: 6px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  color: #3a3a3a;
  background: #fff;
}

@media (max-width: 720px) {
  .step-card {
    padding-top: 22px;
  }

  .step-head {
    height: 46px;
  }

  .step-num {
    font-size: 48px;
  }

  .step-icon {
    left: 62px;
    top: 4px;
    width: 36px;
    height: 36px;
  }
}

/* Why bar (dividers) */
.why-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.why-point {
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.why-point + .why-point {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.why-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  background: #fff;
  color: #3a3a3a;
}

.why-text {
  color: #666;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}

.motto {
  margin: 22px 0 0;
  color: #6f6f6f;
  font-weight: 600;
}

@media (max-width: 980px) {
  .why-bar {
    grid-template-columns: 1fr;
  }

  .why-point + .why-point {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  text-decoration: none;
}

.button-primary {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  box-shadow: var(--shadow-button);
}

.button-secondary {
  background: #fff;
  color: var(--black);
}

.button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

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

/* CTA */
.cta {
  background: var(--section);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
}

.cta-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.05;
}

.cta-text {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 46ch;
}

.cta-note {
  margin: 0;
  color: #7a7a7a;
  font-size: 14px;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 860px) {
  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

/* Footer */
.site-footer {
  padding: 22px 0;
}

.footer-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--black);
}

.footer-motto {
  color: #7a7a7a;
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
}

.footer-center {
  color: #7a7a7a;
  font-size: 14px;
  text-align: center;
}

.footer-right {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  text-decoration: none;
  color: var(--black);
  background: #ffffff;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-center {
    text-align: left;
  }

  .footer-right {
    justify-self: start;
  }
}
