/* BerleyData OS — Theme */

:root {
  --bg: #0D3B2E;
  --bg-alt: #0A2E23;
  --bg-section: #F8F5F0;
  --fg: #F8F5F0;
  --fg-dark: #1a1a1a;
  --fg-muted: rgba(248,245,240,0.6);
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.15);
  --border: rgba(248,245,240,0.12);
  --green: #1B5E3B;
  --green-light: #2D7A4F;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,59,46,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  padding: 140px 24px 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 380px;
}

/* TOOLS */
.tools {
  background: var(--bg-alt);
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}
.tools-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.tools-header {
  max-width: 600px;
  margin-bottom: 56px;
}
.tools-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.tool-card {
  background: rgba(248,245,240,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color 0.2s;
}
.tool-card:hover { border-color: rgba(245,158,11,0.3); }
.tool-card--main {
  grid-column: 1 / 3;
  grid-row: 1;
}
.tool-card--cta {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
}
.tool-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.tool-status--live { background: rgba(16,185,129,0.15); color: #34d399; }
.tool-status--progress { background: rgba(245,158,11,0.15); color: var(--accent); }
.tool-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.tool-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.tool-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.tool-visual {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tool-visual--sm { max-width: 200px; }
.tool-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.tool-card--main .tool-img { height: 240px; }
.tool-cta { display: inline-block; margin-top: 14px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--accent); text-decoration: none; border: 1px solid rgba(245,158,11,0.3); padding: 8px 16px; border-radius: 8px; transition: background 0.2s; }
.tool-cta:hover { background: rgba(245,158,11,0.1); }

/* PROOF */
.proof {
  background: var(--bg);
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}
.proof-inner { max-width: 1200px; margin: 0 auto; }
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}
.stat {
  padding: 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.proof-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: rgba(248,245,240,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.quote-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 20px;
}
.quote-author {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* MISSION */
.mission {
  background: var(--bg-section);
  padding: 100px 24px;
}
.mission-inner { max-width: 1200px; margin: 0 auto; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 64px;
}
.mission-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--fg);
}
.mission-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.mission-card-body {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.mission-services { margin-top: 48px; }
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.services-list span {
  background: var(--accent-dim);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(245,158,11,0.2);
}

/* CLOSING */
.closing {
  background: var(--bg);
  padding: 120px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.15;
}
.closing-body {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}
.closing-brand {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* FOOTER */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
}
.footer-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.footer-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tool-card--main { grid-column: 1 / 3; }
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .proof-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .proof-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card--main { grid-column: 1; }
  .mission-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero { padding-top: 100px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .tools-title { font-size: 1.5rem; }
  .closing-headline { font-size: 1.8rem; }
  .stat { padding: 24px; }
}