/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE1;
  --charcoal: #1A1A1A;
  --charcoal-mid: #3D3D3D;
  --charcoal-light: #6B6B6B;
  --terracotta: #D94F1E;
  --terracotta-light: #FDF0E8;
  --green: #2D8A4E;
  --green-light: #E8F5EC;
  --red: #B52020;
  --red-light: #FBE8E8;
  --orange: #C96A0E;
  --orange-light: #FEF3E2;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* === NAV === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(26,26,26,0.08);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 3rem 4rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #EDE5D8 60%, #E8DDD0 100%);
  border-radius: 2rem 0 0 8rem;
  z-index: 0;
}

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

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 300;
}

/* === HERO PANEL === */
.hero-image-panel {
  background: #FFFFFF;
  border-radius: 1.2rem;
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 8px 40px rgba(26,26,26,0.08);
  overflow: hidden;
  padding: 1.5rem;
}

.transaction-list { display: flex; flex-direction: column; gap: 0.75rem; }

.transaction-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
}

.transaction-row.green { background: var(--green-light); }
.transaction-row.orange { background: var(--orange-light); }
.transaction-row.red { background: var(--red-light); }

.tx-label { flex: 1; font-weight: 500; color: var(--charcoal); }
.tx-amount { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--charcoal); }
.tx-status { font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 2rem; }
.green .tx-status { background: var(--green); color: white; }
.orange .tx-status { background: var(--orange); color: white; }
.red .tx-status { background: var(--red); color: white; }

.autosave-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--terracotta-light);
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-top: 0.25rem;
}

.autosave-icon { color: var(--terracotta); }

/* === PHILOSOPHY === */
.philosophy {
  background: var(--charcoal);
  padding: 7rem 3rem;
  color: white;
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.philosophy-number {
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--terracotta);
  line-height: 1;
  opacity: 0.6;
}

.philosophy-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: white;
  margin-bottom: 1.5rem;
}

.philosophy-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* === HOW === */
.how {
  background: var(--cream);
  padding: 7rem 3rem;
}

.how-header { text-align: center; margin-bottom: 4rem; }

.how-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.how-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--charcoal);
}

.how-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-card {
  background: white;
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(26,26,26,0.04);
}

.how-card-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--terracotta);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.how-card h3 {
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.how-card p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.7;
  font-weight: 300;
}

/* === ALERT SECTION === */
.alert-section {
  background: var(--cream-dark);
  padding: 7rem 3rem;
}

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

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal-light);
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.alert-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.alert-card {
  background: white;
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(26,26,26,0.06);
  border-left: 4px solid var(--red);
}

.alert-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.alert-body { margin-bottom: 1.5rem; }

.alert-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(26,26,26,0.06);
  font-size: 0.9rem;
}

.alert-key { color: var(--charcoal-light); font-weight: 400; }
.alert-val { color: var(--charcoal); font-weight: 500; }
.alert-val.highlight { color: var(--red); font-weight: 600; }

.alert-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--charcoal-mid); }

.btn-secondary {
  background: transparent;
  color: var(--charcoal-light);
  border: 1px solid rgba(26,26,26,0.15);
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { background: rgba(26,26,26,0.04); }

.alert-footnote {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--charcoal-light);
  font-style: italic;
  text-align: center;
}

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

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

.closing h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.closing p {
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  line-height: 1.8;
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto;
}

/* === FOOTER === */
.site-footer {
  background: var(--charcoal);
  padding: 4rem 3rem 3rem;
}

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

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.footer-desc {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.footer-copy {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-image-panel { order: -1; }
  .how-grid { grid-template-columns: 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-number { font-size: 3rem; }
  .site-nav { padding: 1rem 1.5rem; }
  .hero, .philosophy, .how, .alert-section, .closing { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .alert-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .alert-actions { flex-direction: column; }
}