:root {
  --navy: #14233a;
  --navy-2: #1c3350;
  --steel: #5c6b7a;
  --paper: #f5f3ee;
  --paper-2: #edeae3;
  --orange: #e8622c;
  --orange-dark: #c94f20;
  --line-light: rgba(20, 35, 58, 0.14);
  --line-dark: rgba(245, 243, 238, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Roboto", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3 {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.04;
}
.idx {
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- ruler divider (signature motif) ---------- */
.ruler {
  height: 14px;
  background-image:
    repeating-linear-gradient(
      to right,
      currentColor 0,
      currentColor 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      to right,
      currentColor 0,
      currentColor 1px,
      transparent 1px,
      transparent 60px
    );
  background-size:
    12px 6px,
    60px 11px;
  background-position:
    bottom left,
    bottom left;
  background-repeat: repeat-x;
  color: var(--line-light);
  opacity: 0.9;
}
.ruler.on-dark {
  color: var(--line-dark);
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.section-tag .idx {
  white-space: nowrap;
}
.section-tag .rule {
  flex: 1;
  height: 1px;
  background: var(--line-light);
}
.on-dark .section-tag .rule {
  background: var(--line-dark);
}
.on-dark .section-tag .idx {
  color: rgba(245, 243, 238, 0.55);
}

/* ---------- NAV ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 238, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
}
.brand .name {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand .tag {
  font-family: "Roboto", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--steel);
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--navy);
}
@media (max-width: 780px) {
  .nav-links {
    display: none;
  }
}

.btn {
  font-family: "Roboto", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn-orange {
  background: var(--orange);
  color: var(--paper);
  font-weight: 700;
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--paper);
}
.btn-outline-light {
  border-color: rgba(245, 243, 238, 0.4);
  color: var(--paper);
}
.btn-outline-light:hover {
  background: var(--paper);
  color: var(--navy);
}

/* ---------- HERO ---------- */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 60px;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 700;
  margin-top: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero p.lede {
  font-size: 1.05rem;
  color: rgba(245, 243, 238, 0.75);
  max-width: 48ch;
  margin-top: 20px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* blueprint drawing panel — signature element */
.plan-panel {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: "Roboto", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(245, 243, 238, 0.5);
  text-transform: uppercase;
}
.plan-body {
  padding: 22px 20px 8px;
}
.plan-svg path.outline {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawIn 2.6s ease forwards;
}
.plan-svg path.dim-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.2;
}
.plan-svg text {
  font-family: "Roboto", sans-serif;
  font-size: 9px;
  fill: rgba(245, 243, 238, 0.65);
}
@keyframes drawIn {
  to {
    stroke-dashoffset: 0;
  }
}
.plan-foot {
  padding: 10px 16px 14px;
  font-family: "Roboto", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
  border-top: 1px solid var(--line-dark);
}

@media (prefers-reduced-motion: reduce) {
  .plan-svg path.outline {
    animation: none;
    stroke-dashoffset: 0;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ---------- SECTION SCAFFOLD ---------- */
section {
  padding: 80px 0;
}
.section-head {
  max-width: 660px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
}
.section-head p {
  margin-top: 14px;
  color: var(--steel);
  font-size: 1rem;
}

/* ---------- SERVICES (sheet-numbered) ---------- */
.services {
  background: var(--paper);
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-light);
}
@media (max-width: 760px) {
  .sheet-grid {
    grid-template-columns: 1fr;
  }
}
.sheet-card {
  background: var(--paper);
  padding: 30px 28px;
}
.sheet-card .sheet-no {
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 700;
}
.sheet-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 8px;
}
.sheet-card p {
  margin-top: 10px;
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 44ch;
}

/* ---------- WHY (spec-sheet dotted list) ---------- */
.why {
  background: var(--paper-2);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.spec-list {
  border-top: 1px solid var(--line-light);
}
.spec-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}
.spec-row .spec-label {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.spec-row .dots {
  flex: 1;
  border-bottom: 2px dotted var(--steel);
  height: 1px;
  transform: translateY(-5px);
  opacity: 0.5;
}
.spec-row .spec-value {
  color: var(--steel);
  font-size: 0.92rem;
  text-align: right;
  max-width: 38ch;
}
@media (max-width: 700px) {
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .spec-row .dots {
    display: none;
  }
  .spec-row .spec-value {
    text-align: left;
  }
}

/* ---------- APP SECTION ---------- */
.app-section {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.app-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.app-grid {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-grid > *:first-child {
    order: 2;
  }
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--orange);
  padding: 7px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.app-section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--paper);
  text-transform: none;
}
.app-section .lede {
  color: rgba(245, 243, 238, 0.72);
  margin-top: 16px;
  max-width: 50ch;
}

.feature-list {
  margin-top: 30px;
  display: grid;
  gap: 0;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line-dark);
}
.feature-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}
.feature-tag {
  font-family: "Roboto", sans-serif;
  font-size: 0.68rem;
  color: var(--orange);
  flex: none;
  width: 30px;
  padding-top: 3px;
}
.feature-item h3 {
  font-family: "Roboto", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
}
.feature-item p {
  color: rgba(245, 243, 238, 0.6);
  font-size: 0.88rem;
  margin-top: 4px;
}

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.safety-badge {
  font-family: "Roboto", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 243, 238, 0.28);
  color: rgba(245, 243, 238, 0.82);
  padding: 7px 11px;
  border-radius: 2px;
}

.app-cta-row {
  margin-top: 28px;
  display: inline-block;
  gap: 14px;
  align-items: center;
}
.store-badge {
  display: block;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 243, 238, 0.3);
  padding: 11px 18px;
  border-radius: 2px;
  font-family: "Roboto", sans-serif;
  color: rgba(245, 243, 238, 0.45);
  font-size: 0.76rem;
  cursor: default;
}
.store-badge .bottom {
  font-size: 0.9rem;
  color: rgba(245, 243, 238, 0.7);
  font-weight: 700;
}

/* phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone {
  width: 260px;
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  position: relative;
}
.phone-ribbon {
  position: absolute;
  top: 22px;
  right: -40px;
  background: var(--orange);
  color: var(--paper);
  font-family: "Roboto", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 42px;
  transform: rotate(40deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.phone-screen {
  background: var(--navy);
  border-radius: 10px;
  padding: 14px 14px 18px;
  min-height: 340px;
}
.phone-ruler {
  height: 8px;
  margin-bottom: 14px;
}
.phone-title {
  font-family: "Roboto", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 12px;
}
.phone-menu {
  display: grid;
  gap: 8px;
}
.phone-menu-item {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-menu-item span.label {
  font-family: "Roboto", sans-serif;
  font-size: 0.76rem;
  color: var(--paper);
  font-weight: 500;
}
.phone-menu-item span.tag {
  font-family: "Roboto", sans-serif;
  font-size: 0.58rem;
  color: var(--orange);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--paper);
  text-align: center;
}
.contact .wrap {
  max-width: 760px;
}
.contact h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
}
.contact p.lede {
  color: var(--steel);
  max-width: 52ch;
  margin: 18px auto 0;
  font-size: 1.02rem;
}
.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact-details {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 34px;
  border-top: 1px solid var(--line-light);
  text-align: left;
}
.contact-details div {
  max-width: 220px;
}
.contact-details .idx {
  margin-bottom: 8px;
}
.contact-details p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--navy);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(245, 243, 238, 0.55);
  padding: 32px 0;
}
.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}
