/* ===== Ratel Systems — styles ===== */

:root {
  --bg: #111110;
  --bg-raised: #1C1B19;
  --line: #2E2D2A;
  --text: #F2F0EA;
  --text-muted: #C9C6BD;
  --text-faint: #A8A59C;

  --light-bg: #F2F0EA;
  --light-card: #FFFFFF;
  --light-line: #E2DFD6;
  --light-text: #111110;
  --light-muted: #4A4844;

  --accent: #D91A15; /* brand red */

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

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

p { margin: 0; }

a { color: var(--text); }
a:hover { color: #FFFFFF; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: 999px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.btn:hover { opacity: 0.88; }

.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

.btn-accent,
.btn-accent:hover { background: var(--accent); color: #FFFFFF; }

.btn-light,
.btn-light:hover { background: var(--text); color: var(--bg); }

.btn-outline { border: 1.5px solid #4A4844; color: var(--text); }
.btn-outline:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); opacity: 1; }

.btn-dark,
.btn-dark:hover { background: var(--light-text); color: var(--light-bg); }

/* ===== Logo placeholders (delete once real logos are in) ===== */

.logo-placeholder {
  width: 44px;
  height: 44px;
  border: 1.5px dashed #6E6C66;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  flex-shrink: 0;
}
.logo-placeholder--light {
  width: 56px;
  height: 56px;
  border-color: #A8A59C;
  border-radius: 12px;
  font-size: 9px;
  color: #6E6C66;
}

.brand-logo { height: 44px; width: auto; }
.card-logo { height: 56px; width: auto; }

/* ===== Header ===== */

.site-header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav a:not(.btn) { text-decoration: none; color: var(--text-muted); }
.nav a:not(.btn):hover { color: var(--text); }

/* ===== Hero ===== */

.hero {
  padding-top: 120px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ===== Products ===== */

.products {
  background: var(--light-bg);
  color: var(--light-text);
}

.products-inner {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--light-muted);
  max-width: 40ch;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.card {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--light-muted);
}
.card h3 {
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--light-text);
}
.card-tagline {
  font-size: 19px;
  font-weight: 500;
  color: var(--light-text);
}
.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
}
.btn-card {
  margin-top: auto;
  align-self: flex-start;
  padding: 14px 24px;
  font-size: 15px;
}

/* ===== About ===== */

.about {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.about-title {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-title h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-body {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.values h3 { font-size: 18px; margin-bottom: 8px; }
.values p { font-size: 15px; line-height: 1.55; color: var(--text-faint); }

/* ===== Contact ===== */

.contact { padding-bottom: 96px; }

.contact-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 32ch;
}
.contact-text h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.contact-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ===== Footer ===== */

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; color: var(--text-faint); }
.footer-nav a:hover { color: var(--text); }

/* ===== Small screens ===== */

@media (max-width: 640px) {
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .products-inner { padding-top: 72px; padding-bottom: 72px; }
  .about { padding-top: 72px; padding-bottom: 72px; }
  .card { padding: 28px; }
  .contact-box { padding: 40px 24px; }
  .nav { gap: 20px; }
}