:root {
  --bg-white: #ffffff;
  --bg-canvas: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-elevated: #141416;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #a1a1a6;
  --accent: #0066cc;
  --accent-hover: #0071e3;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-pill: 980px;
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Global Frosted Glass Navigation (Apple 48px bar) */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 52px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s var(--ease-apple);
}

.nav-content {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand svg {
  width: 22px;
  height: 22px;
}

.nav-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.2s var(--ease-apple);
}

.nav-menu a:hover {
  opacity: 1;
}

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.nav-cta:hover {
  background: #333336;
}

/* Buttons & Links */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s var(--ease-apple);
  cursor: pointer;
  border: none;
}

.btn-blue {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-blue:hover {
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 18px;
}

.btn-ghost:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chevron {
  display: inline-block;
  margin-left: 4px;
  font-family: -apple-system, sans-serif;
  transition: transform 0.2s var(--ease-apple);
}

.btn-ghost:hover .chevron,
.text-link:hover .chevron {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

/* Hero Section */
.hero {
  padding: 112px 0 88px;
  text-align: center;
  background: var(--bg-white);
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  max-width: 880px;
  margin: 0 auto 24px;
}

.hero-subhead {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 400;
  line-height: 1.48;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 72px;
}

/* Hero Product Stage (Minimalist Architectural Visual) */
.hero-stage {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-canvas);
  border-radius: var(--radius-xl);
  padding: 52px 48px 48px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}

.metric-cell {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 20px;
}

.metric-value {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Section Rhythm */
.section-light {
  padding: 120px 0;
  background: var(--bg-canvas);
}

.section-white {
  padding: 120px 0;
  background: var(--bg-white);
}

.section-dark {
  padding: 128px 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-head {
  margin-bottom: 64px;
}

.section-head.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  color: var(--text-on-dark-muted);
}

.headline-lg {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
}

.lead-text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 660px;
}

.section-head.centered .lead-text {
  margin: 0 auto;
}

.section-dark .lead-text {
  color: var(--text-on-dark-muted);
}

/* Bento Grid for Core Capabilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.05);
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-card.dark-surface {
  background: #141416;
  color: var(--text-on-dark);
}

.bento-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.bento-card.dark-surface .bento-category {
  color: var(--text-on-dark-muted);
}

.bento-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}

.bento-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

.bento-card.dark-surface .bento-desc {
  color: var(--text-on-dark-muted);
}

/* Minimalist UI Mockups inside Bento Cards */
.bento-visual {
  margin-top: 36px;
  background: var(--bg-canvas);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bento-card.dark-surface .bento-visual {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.flow-box {
  background: var(--bg-white);
  padding: 16px;
  border-radius: 12px;
}

.flow-box-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.flow-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flow-box-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.quant-curve {
  width: 100%;
  height: 112px;
  display: block;
}

.kv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kv-row span:first-child {
  color: var(--text-secondary);
}

.kv-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Dark Philosophy / Evolution Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border-dark);
}

.phil-col-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
}

.phil-col h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

.phil-col p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
}

.phil-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phil-points li {
  font-size: 15px;
  color: #d2d2d7;
  padding-left: 18px;
  position: relative;
}

.phil-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-on-dark-muted);
}

.phil-col.current li::before {
  background: #ffffff;
}

/* Selected Works / Industry Cases */
.segmented-control {
  display: inline-flex;
  background: var(--bg-canvas);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 48px;
}

.seg-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.seg-btn.active {
  background: var(--bg-white);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-canvas);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  cursor: pointer;
  transition: background 0.3s var(--ease-apple), transform 0.35s var(--ease-apple);
}

.case-card:hover {
  background: #ededf0;
  transform: translateY(-3px);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.case-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.case-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.case-outcome {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* About & Corporate Trust Section */
.trust-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.milestone-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.milestone-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ms-year {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.ms-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ms-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact CTA Banner */
.contact-card {
  margin-top: 80px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
}

.contact-card h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-card p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 28px;
}

/* Apple-style Clean Sheet Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  padding: 48px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: #e5e5ea;
  color: var(--text-primary);
}

.modal-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  margin-top: 24px;
}

/* Footer (Apple Legal Footnote Style) */
.site-footer {
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 48px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-note {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* Subtle Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .bento-span-7,
  .bento-span-5,
  .bento-span-6 {
    grid-column: span 12;
  }
  .stage-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .philosophy-grid,
  .cases-grid,
  .trust-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .corp-facts {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 28px;
  }
  .nav-menu {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 76px 0 56px;
  }
  .hero-stage,
  .bento-card,
  .case-card,
  .contact-card,
  .modal-sheet {
    padding: 28px 24px;
  }
  .stage-metrics,
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .segmented-control {
    display: flex;
    flex-wrap: wrap;
    border-radius: 16px;
  }
}
