:root {
  --bg: #0d1f22;
  --bg-2: #122a2e;
  --bg-card: #163336;
  --fg: #e8d5b7;
  --fg-muted: #a89880;
  --accent: #d4622a;
  --accent-glow: rgba(212, 98, 42, 0.25);
  --teal: #2a6a70;
  --teal-light: #3d8e94;
  --cream: #f5ead6;
  --wave-1: rgba(212, 98, 42, 0.08);
  --wave-2: rgba(42, 106, 112, 0.12);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* Typography */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-family: 'DM Sans', sans-serif; font-weight: 600; }
p { color: var(--fg-muted); font-size: 1.05rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(42, 106, 112, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(212, 98, 42, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 80%, rgba(13, 31, 34, 0.9) 0%, transparent 50%),
    linear-gradient(160deg, #0d1f22 0%, #163336 40%, #0d1f22 100%);
  z-index: 0;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  overflow: hidden;
  z-index: 1;
}

.hero-waves svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 220px;
}

.hero-content {
  position: relative;
  z-index: 2;
  container: hero-content;
}

.hero-inner {
  max-width: 900px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wave-1);
  border: 1px solid rgba(212, 98, 42, 0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cream);
}

.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 500;
}

/* Floating decorative elements */
.hero-deco {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 98, 42, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.hero-deco-2 {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 106, 112, 0.2) 0%, transparent 70%);
  filter: blur(30px);
  animation: float 6s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 8rem 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.manifesto-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 2rem;
}

.manifesto h2 {
  color: var(--cream);
  margin-bottom: 2rem;
}

.manifesto h2 em {
  font-style: italic;
  color: var(--accent);
}

.manifesto p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 8rem 0;
  background: var(--bg);
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.categories-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.categories h2 {
  color: var(--cream);
}

.categories-tagline {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 300px;
  text-align: right;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover {
  border-color: rgba(212, 98, 42, 0.3);
  transform: translateY(-2px);
}

.category-card:hover::after {
  transform: scaleX(1);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--wave-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 98, 42, 0.2);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.category-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: 8rem 0;
  background: var(--bg-2);
  position: relative;
}

.philosophy-header {
  text-align: center;
  margin-bottom: 5rem;
  padding: 0 2rem;
}

.philosophy-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.philosophy h2 {
  color: var(--cream);
  max-width: 600px;
  margin: 0 auto;
}

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

.principle-card {
  padding: 2rem;
  background: rgba(42, 106, 112, 0.06);
  border: 1px solid rgba(42, 106, 112, 0.15);
  border-radius: 16px;
}

.principle-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(212, 98, 42, 0.3);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.principle-card h3 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 0.9rem;
}

/* ===== CLOSER ===== */
.closer {
  padding: 10rem 0 8rem;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 98, 42, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.closer-inner {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.closer h2 {
  color: var(--cream);
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.closer h2 em {
  font-style: italic;
  color: var(--accent);
}

.closer-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.closer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.closer-mark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal-light);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  .hero { min-height: 90vh; padding-bottom: 4rem; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-meta { gap: 1.5rem; }
  .hero-deco, .hero-deco-2 { display: none; }

  .categories-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 1rem; }
  .categories-header { flex-direction: column; align-items: flex-start; }
  .categories-tagline { text-align: left; }

  .manifesto { padding: 5rem 0; }
  .categories, .philosophy { padding: 5rem 0; }
  .closer { padding: 6rem 0 5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-meta { flex-direction: column; gap: 1rem; }
  .category-card { padding: 2rem 1.5rem; }
}
