:root {
  --ink: #18222b;
  --muted: #5f6c76;
  --paper: #f7fafb;
  --white: #ffffff;
  --orange: #e5602a;
  --orange-deep: #bd461b;
  --teal: #168b91;
  --blue: #316eb1;
  --line: #dbe4e8;
  --shadow: 0 18px 50px rgba(24, 34, 43, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 232, .9);
  background: rgba(247, 250, 251, .92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.quarter-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: #35434d; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--orange-deep); }

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 92% 8%, rgba(229, 96, 42, .19), transparent 27%),
    radial-gradient(circle at 5% 92%, rgba(22, 139, 145, .13), transparent 31%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange-deep);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(2.75rem, 7vw, 5.8rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin-bottom: 10px; font-size: 1.35rem; }

.lede { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(229, 96, 42, .22);
}

.button:hover, .button:focus-visible { background: var(--orange-deep); }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); box-shadow: none; }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--ink); background: var(--white); }

.brand-art {
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.section { padding: 86px 0; }
.section.white { background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head p { max-width: 610px; margin: 0; color: var(--muted); }

.app-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 60%, #fff3ed);
  box-shadow: var(--shadow);
}

.app-icon { width: 176px; border-radius: 36px; box-shadow: 0 14px 30px rgba(74, 46, 28, .22); }
.app-card p { max-width: 690px; color: var(--muted); }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tag { padding: 6px 11px; border-radius: 999px; background: #edf3f5; color: #35434d; font-size: .83rem; font-weight: 750; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { min-height: 210px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.number { display: block; margin-bottom: 28px; color: var(--orange-deep); font-size: .82rem; font-weight: 900; letter-spacing: .12em; }
.principle p { margin-bottom: 0; color: var(--muted); }

.page-hero { padding: 72px 0 44px; }
.page-hero h1 { max-width: 850px; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 52px; font-size: 1.75rem; }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #3d4b55; }
.prose ul { padding-left: 22px; }
.notice { margin: 28px 0; padding: 22px; border-left: 5px solid var(--orange); border-radius: 0 14px 14px 0; background: #fff3ed; }
.notice p { margin: 0; color: var(--ink); }

.side-card { position: sticky; top: 106px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.side-card p { color: var(--muted); }
.side-card a { color: var(--blue); overflow-wrap: anywhere; }

.faq { border-top: 1px solid var(--line); }
details { padding: 19px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; }
details p { max-width: 760px; margin-bottom: 0; color: var(--muted); }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: var(--ink); color: #dbe4e8; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; }
.footer-brand { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: #dbe4e8; }
.legal { margin: 18px 0 0; color: #aebcc4; font-size: .9rem; }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 680px); }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    inset: 76px 14px auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { padding-top: 58px; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; gap: 44px; }
  .brand-art { max-width: 330px; }
  .section-head, .footer-grid { align-items: start; flex-direction: column; }
  .app-card { grid-template-columns: 112px minmax(0, 1fr); padding: 22px; }
  .app-icon { width: 112px; border-radius: 26px; }
  .principles { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

@media (max-width: 540px) {
  .brand-text { max-width: 190px; line-height: 1.1; }
  h1 { font-size: 2.75rem; }
  .app-card { grid-template-columns: 1fr; }
  .app-icon { width: 96px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
