body { overflow-x: hidden; }

/* ── NAV ── */
.sw-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 32px;
  border-bottom: 1px solid var(--hair);
  align-items: center;
}
.sw-bar .center { text-align: center; }
.sw-bar .right  { text-align: right; }
.sw-bar a { color: inherit; text-decoration: none; }
.sw-bar a:hover { opacity: 0.7; }

.sw-page { width: 100%; max-width: 1440px; margin: 0 auto; }

/* ── HERO ── */
.sw-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: calc(100vh - 73px);
  border-bottom: 1px solid var(--hair);
}
.sw-hero-l {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--hair);
  justify-content: center;
}
.sw-hero-r {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.sw-display {
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.sw-display em     { font-style: normal; color: var(--fg); }
.sw-display .strike { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.sw-sub { color: var(--dim); max-width: 460px; line-height: 1.55; font-size: 16px; }
.sw-sub b { color: var(--fg); font-weight: 500; }
.sw-hero-r .pull {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 520px;
}
.sw-hero-r .pull em { font-style: normal; color: var(--fg); }

/* ── INTUITION ── */
.sw-intuition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hair);
}
.sw-intuition .col {
  padding: 56px 40px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
}
.sw-intuition .col:last-child { border-right: none; }
.sw-intuition .col h3 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.sw-intuition .col h3 em { font-style: normal; color: var(--fg); }
.sw-intuition .col p { color: var(--dim); font-size: 15px; line-height: 1.55; max-width: 460px; }
.sw-intuition .col p b { color: var(--fg); font-weight: 500; }
.sw-intuition .visual {
  flex: 1;
  position: relative;
  min-height: 220px;
  cursor: none;
}

/* ── THEORY ── */
.sw-theory {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  border-bottom: 1px solid var(--hair);
}
.sw-theory-l { padding: 64px 40px; border-right: 1px solid var(--hair); min-width: 0; }
.sw-theory-c { padding: 80px 56px; min-width: 0; }
.sw-theory-c h2 {
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 620px;
}
.sw-theory-c h2 em { font-style: normal; color: var(--fg); }
.sw-theory-c p { color: var(--dim); font-size: 17px; line-height: 1.55; max-width: 540px; margin-bottom: 18px; }
.sw-theory-c p b { color: var(--fg); font-weight: 500; }
.sw-theory-r {
  padding: 64px 40px;
  border-left: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  min-width: 0;
}
.sw-theory-r .quote { font-size: 22px; line-height: 1.32; letter-spacing: -0.012em; color: var(--fg); }
.sw-theory-r .quote em { font-style: normal; }
.sw-theory-r .attrib { color: var(--dim); }

/* ── SIMULATION SECTION ── */
.sw-sim-section { padding: 0; border-bottom: 1px solid var(--hair); }
.sw-sim-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 64px 40px 40px;
  border-bottom: 1px solid var(--hair);
}
.sw-sim-head h2 {
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 18px;
}
.sw-sim-head h2 em { font-style: normal; }
.sw-sim-head p { color: var(--dim); font-size: 17px; line-height: 1.55; max-width: 580px; }

.sw-recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
}
.sw-recipe {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sw-recipe:last-child { border-right: none; }
.sw-recipe .n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.sw-recipe h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.sw-recipe h4 em { font-style: normal; }
.sw-recipe p { color: var(--dim); line-height: 1.55; font-size: 14px; max-width: 360px; }

/* ── SIMULATION WIDGET ── */
.sw-sim {
  display: grid;
  grid-template-columns: 360px 1fr;
}
.sw-side {
  padding: 32px 28px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sw-side .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.sw-side h3 { font-size: 28px; line-height: 1; letter-spacing: -0.025em; font-weight: 500; margin: 12px 0 6px; }
.sw-side .desc { color: var(--dim); font-size: 13px; line-height: 1.5; max-width: 280px; }

.sw-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}
.sw-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.sw-row .top b { font-weight: 500; font-size: 13px; letter-spacing: -0.005em; }
.sw-row .top .val { font-family: var(--mono); font-size: 13px; color: var(--fg); }
.sw-row input[type="range"] { -webkit-appearance: none; width: 100%; background: transparent; height: 18px; }
.sw-row input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: #2a2a2a; }
.sw-row input[type="range"]::-moz-range-track { height: 1px; background: #2a2a2a; }
.sw-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: var(--accent); border-radius: 0; margin-top: -6px; cursor: pointer; border: none; }
.sw-row input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--accent); border-radius: 0; cursor: pointer; border: none; }
.sw-row .scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.sw-actions button {
  background: var(--bg);
  color: var(--fg);
  border: none;
  padding: 14px 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .12s, color .12s;
  font-family: var(--mono);
}
.sw-actions button:hover { background: #161616; }
.sw-actions button.primary { background: var(--fg); color: var(--bg); }
.sw-actions button.primary:hover { background: #ccc; }

.sw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
}
.sw-stat { padding: 18px 20px; border-right: 1px solid var(--hair); }
.sw-stat:last-child { border-right: none; }
.sw-stat .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.sw-stat .v { font-size: 28px; line-height: 1; margin-top: 6px; letter-spacing: -0.02em; font-weight: 500; }

.sw-main { display: grid; grid-template-rows: 1fr auto; min-height: 720px; }
.sw-canvas-wrap { position: relative; min-height: 520px; border-bottom: 1px solid var(--hair); }
.sw-canvas-wrap canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sw-canvas-wrap .head {
  position: absolute;
  top: 18px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}
.sw-canvas-wrap .head .legend { display: flex; gap: 18px; align-items: center; }
.sw-canvas-wrap .head .legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw-canvas-wrap .head .legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sw-canvas-wrap .corner {
  position: absolute;
  bottom: 18px; left: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  pointer-events: none;
}
.sw-canvas-wrap .corner-r {
  position: absolute;
  bottom: 18px; right: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  pointer-events: none;
}

.sw-chart-wrap { position: relative; height: 200px; padding: 20px 24px 12px; }
.sw-chart-wrap .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.sw-chart-canvas { position: absolute; left: 24px; right: 24px; top: 38px; bottom: 12px; }
.sw-chart-canvas canvas { display: block; width: 100%; height: 100%; }

/* ── CONNECT ── */
.sw-connect { padding: 64px 0 0; border-bottom: 1px solid var(--hair); }
.sw-connect-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0 40px 56px;
}
.sw-connect-head h2 { font-size: 76px; line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; }
.sw-connect-head h2 em { font-style: normal; }
.sw-stair {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
}

/* ── CTA ── */
.sw-cta-section { padding: 200px 40px 160px; text-align: center; }
.sw-cta-section h2 { font-size: 168px; line-height: 0.88; letter-spacing: -0.05em; font-weight: 500; }
.sw-cta-section h2 .strike { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 4px; }
.sw-cta-section .lede {
  color: var(--dim);
  font-size: 18px;
  line-height: 1.5;
  margin: 56px auto 40px;
  max-width: 520px;
}
.sw-cta-form { max-width: 460px; margin: 0 auto; }
.sw-cta-form form { display: flex; border: 1px solid #2a2a2a; }
.sw-cta-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--fg);
  font: inherit;
  outline: none;
}
.sw-cta-form input::placeholder { color: var(--dim); }
.sw-cta-form button {
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0 22px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.sw-cta-form button:hover { background: #ccc; }
.sw-cta-form .note {
  color: var(--dim);
  font-size: 11px;
  font-family: var(--mono);
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.sw-cta-form .ok { color: var(--fg); }

/* ── FOOTER ── */
.sw-foot {
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hair);
}
.sw-foot a { color: inherit; text-decoration: none; }
.sw-foot a:hover { opacity: 0.7; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .sw-display         { font-size: 60px; }
  .sw-theory-c h2     { font-size: 44px; }
  .sw-sim-head h2     { font-size: 60px; }
  .sw-connect-head h2 { font-size: 60px; }
  .sw-cta-section h2  { font-size: 110px; }
  .sw-cta-section     { padding: 140px 40px 100px; }
}

@media (max-width: 768px) {
  .sw-bar                 { grid-template-columns: 1fr 1fr; padding: 18px 24px; }
  .sw-bar .center         { display: none; }

  .sw-hero                { grid-template-columns: 1fr; min-height: auto; }
  .sw-hero-l              { border-right: none; padding: 48px 24px 40px; justify-content: flex-start; }
  .sw-hero-r              { padding: 0 24px 48px; border-top: 1px solid var(--hair); }
  .sw-display             { font-size: 48px; }
  .sw-sub                 { max-width: 100%; }
  .sw-hero-r .pull        { font-size: 24px; max-width: 100%; }

  .sw-intuition           { grid-template-columns: 1fr; }
  .sw-intuition .col      { padding: 40px 24px; min-height: auto; border-right: none; border-bottom: 1px solid var(--hair); }
  .sw-intuition .col:last-child { border-bottom: none; }
  .sw-intuition .col h3   { font-size: 28px; }
  .sw-intuition .visual   { min-height: 160px; }

  .sw-theory              { grid-template-columns: 1fr; }
  .sw-theory-l            { padding: 40px 24px 0; border-right: none; display: flex; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--hair); }
  .sw-theory-c            { padding: 40px 24px; }
  .sw-theory-c h2         { font-size: 36px; max-width: 100%; }
  .sw-theory-c p          { font-size: 15px; max-width: 100%; }
  .sw-theory-r            { padding: 40px 24px; border-left: none; border-top: 1px solid var(--hair); }
  .sw-theory-r .quote     { font-size: 18px; }

  .sw-sim-head            { grid-template-columns: 1fr; padding: 40px 24px 32px; gap: 16px; }
  .sw-sim-head h2         { font-size: 48px; }
  .sw-sim-head p          { font-size: 15px; max-width: 100%; }

  .sw-recipes             { grid-template-columns: 1fr; }
  .sw-recipe              { border-right: none; border-bottom: 1px solid var(--hair); }
  .sw-recipe:last-child   { border-bottom: none; }
  .sw-recipe h4           { font-size: 18px; }
  .sw-recipe p            { max-width: 100%; }

  .sw-sim                 { grid-template-columns: 1fr; }
  .sw-main                { order: -1; min-height: auto; }
  .sw-canvas-wrap         { min-height: 340px; margin-top: 40px; margin-bottom: 8px; }
  .sw-chart-wrap          { padding-bottom: 40px; }
  .sw-side                { border-right: none; border-top: 1px solid var(--hair); border-bottom: none; }
  .sw-side h3             { font-size: 22px; }

  .sw-connect-head        { grid-template-columns: 1fr; padding: 0 24px 40px; }
  .sw-connect-head h2     { font-size: 48px; }
  .sw-stair               { grid-template-columns: repeat(2, 1fr); }

  .sw-cta-section         { padding: 96px 24px 80px; }
  .sw-cta-section h2      { font-size: 72px; }
  .sw-cta-section h2 .strike { text-decoration-thickness: 3px; }
  .sw-cta-section .lede   { font-size: 16px; margin: 40px auto 32px; }
  .sw-cta-form            { max-width: 100%; }

  .sw-foot                { padding: 24px; }
}

@media (max-width: 480px) {
  .sw-bar                 { padding: 16px 20px; }
  .sw-bar .right          { font-size: 10px; }

  .sw-hero-l              { padding: 40px 20px 32px; gap: 16px; }
  .sw-hero-r              { padding: 0 20px 40px; }
  .sw-display             { font-size: 38px; }
  .sw-hero-r .pull        { font-size: 20px; }

  .sw-intuition .col      { padding: 32px 20px; }
  .sw-intuition .col h3   { font-size: 24px; }

  .sw-theory-l            { padding: 32px 20px 0; }
  .sw-theory-c            { padding: 32px 20px; }
  .sw-theory-c h2         { font-size: 30px; }
  .sw-theory-r            { padding: 32px 20px; }

  .sw-sim-head            { padding: 32px 20px 24px; }
  .sw-sim-head h2         { font-size: 38px; }

  .sw-recipe              { padding: 24px 20px 28px; }

  .sw-connect-head        { padding: 0 20px 32px; }
  .sw-connect-head h2     { font-size: 38px; }
  .sw-stair               { grid-template-columns: 1fr; }

  .sw-cta-section         { padding: 72px 20px 64px; }
  .sw-cta-section h2      { font-size: 52px; }
  .sw-cta-section h2 .strike { text-decoration-thickness: 2px; }
  .sw-cta-section .lede   { font-size: 15px; }

  .sw-foot                { padding: 20px; }
}
