:root {
  --coral: #FF6B4A;
  --coral-light: #FF8B6E;
  --coral-deep: #C5391A;
  --coral-bg: #2A1410;
  --bg: #0F0E12;
  --surface: #1A1920;
  --surface-2: #232229;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #F4F1EC;
  --text-muted: #9F9C97;
  --text-dim: #5C5A56;
  --on-coral: #1A0A06;
  --on-coral-muted: #5C2E1F;
}

[data-theme="light"] {
  --bg: #FFF8F2;
  --surface: #FFFFFF;
  --surface-2: #FFEFE6;
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.15);
  --text: #1F1B18;
  --text-muted: #6B655F;
  --text-dim: #A8A39D;
  --coral-bg: #FFE0D4;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--coral);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: var(--coral-light);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before { opacity: 0.18; }
[data-theme="light"] body::after { opacity: 0.12; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--coral);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-mark { transform: rotate(12deg) scale(1.08); }
.logo-mark svg { width: 18px; height: 18px; }

.nav-pills {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.nav-pills a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.nav-pills a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  padding: 0;
}

.theme-toggle:hover { transform: rotate(15deg); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }

/* HERO */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-bg);
  color: var(--coral);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 36px;
}

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

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

h1 {
  font-weight: 900;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

h1 .accent { color: var(--coral); }

.hero-desc {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.25s; }

.btn-primary {
  background: var(--coral);
  color: var(--on-coral);
}

.btn-primary:hover { background: var(--coral-light); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-hover); transform: translateY(-2px); }

/* TOOLS */
.tools-section {
  padding: 80px 0 60px;
}

.section-eyebrow {
  text-align: center;
  margin-bottom: 14px;
}

.section-eyebrow span {
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 56px;
  line-height: 1;
}

.section-title .accent { color: var(--coral); }

.tools-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,74,0.4);
}

.tool-card.big {
  grid-row: 1 / 3;
  background: var(--coral);
  color: var(--on-coral);
  border-color: var(--coral);
}

.tool-card.big::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.tool-card.big::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.tool-icon {
  width: 56px;
  height: 56px;
  background: var(--surface-2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--coral);
  flex-shrink: 0;
}

.tool-icon svg { width: 28px; height: 28px; }

.tool-card.big .tool-icon {
  background: rgba(255,255,255,0.18);
  color: var(--on-coral);
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.tool-card.big .tool-icon svg { width: 32px; height: 32px; }

.tool-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin-bottom: 8px;
}

.tool-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1;
}

.tool-card.big .tool-name {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.tool-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-card.big .tool-desc {
  color: var(--on-coral-muted);
  font-size: 15px;
}

.tool-link {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.tool-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.tool-card:hover .tool-link svg { transform: translateX(4px); }

/* PHILOSOPHY */
.philosophy {
  padding: 100px 0;
  text-align: center;
}

.philosophy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 64px 48px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.philosophy-icon {
  width: 56px;
  height: 56px;
  background: var(--coral-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--coral);
}

.philosophy-icon svg { width: 28px; height: 28px; }

.philosophy blockquote {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.philosophy blockquote .accent { color: var(--coral); }

.philosophy-attr {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* FOOTER */
footer {
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a svg { width: 14px; height: 14px; }

.footer-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.footer-links .kofi {
  background: var(--coral-bg);
  color: var(--coral);
}

.footer-links .kofi:hover {
  background: var(--coral);
  color: var(--on-coral);
}
