/* Hinge — Premium Hardware Landing Page */
:root {
  --bg: #f5f0e8;
  --fg: #1a1814;
  --accent: #c4a35a;
  --green: #2d4a3e;
  --cream: #ede7d9;
  --muted: #7a7469;
  --light: #fdfaf5;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.15;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.overline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(196, 163, 90, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 380px;
}

/* Hero Visual — Chess Board Motif */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.board-motif {
  position: relative;
}

.board-row {
  display: flex;
}

.sq {
  width: 42px;
  height: 42px;
  position: relative;
}

.sq.light { background: #e8e0d0; }
.sq.dark { background: var(--green); }

/* Subtle glow on a few squares */
.board-row:nth-child(4) .sq:nth-child(5) { background: rgba(196, 163, 90, 0.5); box-shadow: 0 0 12px rgba(196, 163, 90, 0.3); }
.board-row:nth-child(5) .sq:nth-child(4) { background: rgba(196, 163, 90, 0.5); box-shadow: 0 0 12px rgba(196, 163, 90, 0.3); }
.board-row:nth-child(3) .sq:nth-child(6) { background: rgba(196, 163, 90, 0.4); box-shadow: 0 0 8px rgba(196, 163, 90, 0.2); }

.board-caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* Concept Section */
.concept {
  background: var(--fg);
  color: var(--cream);
  padding: 7rem 3rem;
}

.concept-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.concept-label {
  padding-top: 0.5rem;
}

.concept-label .section-label { color: var(--accent); }

.concept-statement {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--light);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.concept-detail {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Why Chess */
.why-chess {
  background: var(--cream);
  padding: 7rem 3rem;
}

.why-chess-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.why-chess-header {
  margin-bottom: 4rem;
}

.why-chess-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--fg);
  max-width: 600px;
  margin-top: 0.75rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.why-card {
  border-top: 1px solid rgba(26, 24, 20, 0.15);
  padding-top: 1.5rem;
}

.why-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Features */
.features {
  background: var(--bg);
  padding: 7rem 3rem;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
}

.features-inner .section-label {
  display: block;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.feature-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  background: var(--cream);
  padding: 7rem 3rem;
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-inner .section-label {
  display: block;
  margin-bottom: 3.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(16.66% + 0.75rem);
  right: calc(16.66% + 0.75rem);
  height: 1px;
  background: rgba(26, 24, 20, 0.12);
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Closing */
.closing {
  background: var(--green);
  padding: 8rem 3rem;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.closing-sub {
  color: rgba(237, 231, 217, 0.6);
  font-size: 1.1rem;
  font-style: italic;
}

/* Footer */
footer {
  background: var(--fg);
  padding: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 231, 217, 0.3);
}

.footer-note a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .sq { width: 36px; height: 36px; }

  .concept-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sq { width: 30px; height: 30px; }
  .hero, .concept, .why-chess, .features, .how-it-works, .closing { padding: 5rem 1.5rem; }
}