:root {
  --paper: #f6f3ea;
  --cream: #eee9dc;
  --ink: #171713;
  --muted: rgba(23, 23, 19, 0.7);
  --line: rgba(0, 0, 0, 0.1);
  --green: #b8d0c0;
  --terra: #e8a882;
  --rust: #c44b2a;
  --gold: #b89a5a;
  --slate: #3a4a5c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button, input, textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 234, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 192px;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
  color: #fff;
  white-space: nowrap;
}

.brand-fd {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover,
.footer-links a:hover {
  color: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: #000;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.hero {
  padding: 96px 20px 112px;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 1100px;
  margin-bottom: 28px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  color: rgba(23, 23, 19, 0.75);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
}

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

.section {
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.section.alt {
  background: var(--cream);
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.eyebrow {
  margin-bottom: 14px;
  color: rgba(23, 23, 19, 0.7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dark .eyebrow,
.case-hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

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

.card {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.45);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 88px;
  color: var(--muted);
  font-size: 14px;
}

.icon {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  color: var(--muted);
  font-style: italic;
  font-size: 18px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(23, 23, 19, 0.75);
  font-size: 12px;
}

.system-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  padding: 28px;
}

.system-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border-radius: 16px;
  background: #000;
  color: #fff;
}

.selected-card {
  display: flex;
  min-height: 260px;
  aspect-ratio: 1.15 / 1;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.selected-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.selected-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.selected-top {
  display: flex;
  justify-content: space-between;
  color: rgba(23, 23, 19, 0.55);
}

.selected-type {
  margin-bottom: 8px;
  color: rgba(23, 23, 19, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.selected-card h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.about-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 0.8fr 1.2fr;
}

.about-grid p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
}

.cta {
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.5);
  padding: 72px 32px;
  text-align: center;
}

.cta h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cta p {
  max-width: 640px;
  margin: 24px auto 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.case-hero {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.75);
}

.case-hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: end;
}

.case-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(56px, 7vw, 98px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.case-subtitle {
  color: var(--terra);
  font-size: 28px;
  font-style: italic;
}

.case-preview {
  max-width: 640px;
  margin-top: 32px;
  border-left: 1px solid #7a9e87;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.meta-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.meta span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-dark {
  background: var(--ink);
  color: #fff;
  padding: 0 20px 96px;
}

.phone-stage {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 40px;
  background: var(--paper);
  padding: 40px;
}

.phone {
  width: 240px;
  border-radius: 32px;
  background: #1a1410;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.phone-screen {
  border-radius: 24px;
  background: linear-gradient(135deg, #1e2d24, #0f1a12);
  padding: 22px;
  color: #fff;
}

.phone-pill {
  width: 64px;
  height: 8px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #000;
}

.phone-card {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.phone-card.alert {
  border-color: rgba(196, 112, 74, 0.3);
  background: rgba(196, 112, 74, 0.15);
}

.workflow-visual {
  border-top: 1px solid var(--line);
  background: #f5f0e8;
  padding: 88px 0;
}

.workflow-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.workflow-box {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #ede7d6;
  padding: 36px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

.workflow-step {
  width: 100%;
  max-width: 390px;
  border: 1px solid #c8bfaa;
  background: #f5f0e8;
  padding: 20px;
  text-align: center;
  color: var(--slate);
  font-size: 20px;
  font-style: italic;
}

.workflow-arrow {
  height: 36px;
  color: var(--rust);
}

.case-details {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 88px 0;
}

.info-card.dark-card {
  background: var(--ink);
  color: #fff;
}

.info-card.dark-card p {
  color: rgba(255, 255, 255, 0.8);
}

.case-next {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.case-next-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(100%, 600px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  padding: 32px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}

.modal-intro {
  color: var(--muted);
  line-height: 1.7;
}

form label {
  display: block;
  margin-top: 18px;
}

form label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(23, 23, 19, 0.75);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 16px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #000;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.hidden {
  display: none;
}

.success-state {
  padding: 48px 0;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: rgba(23, 23, 19, 0.65);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 160px;
  height: 40px;
}

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

@media (max-width: 860px) {
  .header-inner {
    gap: 12px;
  }

  .brand-logo {
    width: 150px;
    height: 42px;
  }

  .brand-name {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .nav {
    display: none;
  }

  .grid-2,
  .grid-3,
  .about-grid,
  .case-hero-grid,
  .meta-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .hero {
    padding-top: 72px;
  }

  .card {
    min-height: 320px;
  }

  .case-next-inner,
  .footer-inner,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-actions {
    flex-direction: column;
  }
}
