/* ============================================================
   DouBuddy — Corporate & Philosophy Site
   No products. No unverified claims. Just who we are.
   ============================================================ */

/* ─── Design Tokens ───────────────────────────────────────── */
:root {
  --teal: #2CA6A4;
  --teal-dark: #1E7D7B;
  --teal-light: #5BC8C6;
  --coral: #EB7863;
  --coral-light: #F4A898;
  --sky: #5BAEE5;
  --sky-light: #8FC8F0;

  --love: #EB7863;
  --care: #2CA6A4;
  --connect: #5BAEE5;

  --bg: #FAF9F6;
  --bg-alt: #F3F4F6;
  --bg-dark: #1A1D1F;
  --card: #FFFFFF;
  --text: #2F3437;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inv: #FAFAF7;
  --text-inv-secondary: rgba(250,250,247,0.7);
  --border: #E5E7EB;

  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --sec-pad: 100px 24px;
  --inner-max: 1080px;

  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sh-md: 0 4px 16px rgba(0,0,0,0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
p { margin-bottom: 1.2em; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }

/* ─── Layout ──────────────────────────────────────────────── */
.inner { max-width: var(--inner-max); margin: 0 auto; padding: 0 24px; }

/* ─── Navigation ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text); letter-spacing: -0.03em; }
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: var(--text-inv); padding: 8px 20px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(44,166,164,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(91,174,229,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(235,120,99,0.04) 0%, transparent 40%);
  z-index: 0;
}
.hero .inner { position: relative; z-index: 1; }
.hero-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 24px;
  padding: 6px 16px; border: 1px solid var(--teal); border-radius: var(--r-full);
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .line1 { display: block; }
.hero h1 .line2 {
  display: block; font-weight: 300; font-style: italic;
  color: var(--text-secondary); margin-top: 8px; font-size: 0.55em; letter-spacing: -0.01em;
}
.hero-tagline {
  font-size: clamp(18px, 2.5vw, 24px); color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 48px; line-height: 1.6;
}
.hero-dna {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-dna .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin: 0 8px; vertical-align: middle; }
.hero-dna .dot.love { background: var(--love); }
.hero-dna .dot.care { background: var(--care); }
.hero-dna .dot.connect { background: var(--connect); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Sections ────────────────────────────────────────────── */
section { padding: var(--sec-pad); }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-secondary); max-width: 640px; margin: 0 auto;
  font-size: 18px; line-height: 1.7;
}

/* ─── Who We Are ──────────────────────────────────────────── */
.who-we-are { background: var(--bg); }
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.who-text h2 { margin-bottom: 24px; }
.who-text p { color: var(--text-secondary); font-size: 17px; }
.who-text .lead {
  font-size: 20px; color: var(--text); font-weight: 500; line-height: 1.6; margin-bottom: 20px;
}
.who-visual {
  position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center;
}
.who-visual .shape-ring {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid var(--border); animation: rotate 60s linear infinite;
}
.who-visual .shape-ring::before {
  content: ''; position: absolute; inset: 40px; border-radius: 50%;
  border: 1px solid var(--border);
}
.who-visual .shape-ring::after {
  content: ''; position: absolute; inset: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(44,166,164,0.08), rgba(91,174,229,0.08));
}
.who-visual .center-text {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal);
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ─── DNA ─────────────────────────────────────────────────── */
.dna { background: var(--bg-alt); }
.dna-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.dna-card {
  background: var(--card); border-radius: var(--r-lg); padding: 48px 36px;
  box-shadow: var(--sh-sm); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.dna-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.dna-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.dna-card.love::before { background: var(--love); }
.dna-card.care::before { background: var(--care); }
.dna-card.connect::before { background: var(--connect); }
.dna-card h3 { margin-bottom: 12px; font-size: 22px; }
.dna-card.love h3 { color: var(--love); }
.dna-card.care h3 { color: var(--care); }
.dna-card.connect h3 { color: var(--connect); }
.dna-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin: 0; }
.dna-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 20px;
}
.dna-card.love .dna-icon { background: #FFF0EC; }
.dna-card.care .dna-icon { background: #E8F6F5; }
.dna-card.connect .dna-icon { background: #F0F7FC; }

/* ─── Narrative ───────────────────────────────────────────── */
.narrative { background: var(--bg-dark); color: var(--text-inv); }
.narrative .section-label { color: var(--teal-light); }
.narrative h2 { color: var(--text-inv); }
.narrative p { color: var(--text-inv-secondary); }
.narrative .lead {
  font-size: 22px; color: var(--text-inv); font-weight: 500; line-height: 1.6; margin-bottom: 24px;
}
.narrative-body { max-width: 760px; margin: 0 auto; text-align: center; }
.narrative-body p { font-size: 17px; margin-bottom: 20px; }

/* ─── Independence ────────────────────────────────────────── */
.independence { background: var(--bg); }
.ind-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.ind-visual {
  position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center;
}
.ind-visual .bar-chart {
  display: flex; align-items: flex-end; gap: 16px; height: 200px;
}
.ind-visual .bar {
  width: 40px; border-radius: 8px 8px 0 0;
  transition: height 1s var(--ease);
}
.ind-visual .bar:nth-child(1) { height: 40%; background: var(--coral-light); }
.ind-visual .bar:nth-child(2) { height: 55%; background: var(--sky-light); }
.ind-visual .bar:nth-child(3) { height: 70%; background: var(--teal-light); }
.ind-visual .bar:nth-child(4) { height: 85%; background: var(--teal); }
.ind-visual .bar:nth-child(5) { height: 100%; background: var(--coral); }
.ind-text h2 { margin-bottom: 24px; }
.ind-text p { color: var(--text-secondary); font-size: 17px; }
.ind-text .lead { font-size: 20px; color: var(--text); font-weight: 500; margin-bottom: 20px; }
.ind-principles {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.ind-principle {
  padding: 20px; background: var(--card); border-radius: var(--r-md);
  border-left: 3px solid var(--teal);
}
.ind-principle h4 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.ind-principle p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ─── Stand For ───────────────────────────────────────────── */
.stand-for { background: var(--bg-alt); }
.stand-table {
  max-width: 900px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
}
.stand-row {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--card);
}
.stand-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.stand-row.header { background: var(--bg-dark); color: var(--text-inv); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.stand-row.header .cell { padding: 16px 28px; }
.stand-row .cell { padding: 24px 28px; font-size: 15px; line-height: 1.6; }
.stand-row .cell:first-child { border-right: 1px solid var(--border); color: var(--text); }
.stand-row .cell:last-child { color: var(--text-secondary); font-style: italic; }
.stand-row:nth-child(odd):not(.header) { background: #FAFAFA; }

/* ─── Approach ────────────────────────────────────────────── */
.approach { background: var(--bg); }
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.approach-card {
  padding: 40px 32px; border-radius: var(--r-lg);
  border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s;
}
.approach-card:hover { border-color: var(--teal); box-shadow: var(--sh-md); }
.approach-num {
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  color: var(--border); line-height: 1; margin-bottom: 20px; transition: color .3s;
}
.approach-card:hover .approach-num { color: var(--teal-light); }
.approach-card h3 { font-size: 20px; margin-bottom: 12px; }
.approach-card p { color: var(--text-secondary); font-size: 15px; margin: 0; line-height: 1.7; }

/* ─── CTA ─────────────────────────────────────────────────── */
.cta { background: var(--bg-dark); color: var(--text-inv); text-align: center; }
.cta h2 { color: var(--text-inv); margin-bottom: 16px; }
.cta p { color: var(--text-inv-secondary); max-width: 520px; margin: 0 auto 40px; font-size: 17px; }
.cta-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto;
}
.cta-form input {
  flex: 1; min-width: 240px; padding: 14px 20px; border-radius: var(--r-full);
  border: 1px solid var(--border-dark); background: rgba(255,255,255,0.06);
  color: var(--text-inv); font-size: 15px; outline: none; transition: border-color .2s;
}
.cta-form input::placeholder { color: var(--text-inv-secondary); }
.cta-form input:focus { border-color: var(--teal); }
.cta-form button {
  padding: 14px 32px; border-radius: var(--r-full); border: none;
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s, transform .2s;
}
.cta-form button:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  padding: 48px 24px; text-align: center; border-top: 1px solid var(--border);
  background: var(--bg);
}
footer .logo { margin-bottom: 16px; display: inline-block; }
footer p { font-size: 13px; color: var(--text-muted); margin: 0; }
footer .footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 20px; }
footer .footer-links a { font-size: 13px; color: var(--text-secondary); }
footer .footer-links a:hover { color: var(--text); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .who-grid, .ind-grid { grid-template-columns: 1fr; gap: 40px; }
  .who-visual, .ind-visual { min-height: 240px; }
  .dna-grid, .approach-grid { grid-template-columns: 1fr; }
  .stand-row { grid-template-columns: 1fr; }
  .stand-row .cell:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .ind-principles { grid-template-columns: 1fr; }
  .hero-dna { gap: 16px; font-size: 13px; }
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: unset; width: 100%; }
}
