/* ===== TOFLOW — Landing Page Styles ===== */

:root {
  --green: #55b839;
  --green-dark: #429328;
  --green-light: #eaf6e4;
  --charcoal: #33383d;
  --charcoal-2: #4a4d51;
  --gray: #6b7075;
  --gray-light: #8a8e92;
  --bg: #ffffff;
  --bg-alt: #f6f8f6;
  --border: #e6e8e7;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(30, 40, 30, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

h1, h2, h3 { font-weight: 700; margin: 0 0 16px; color: var(--charcoal); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { color: var(--gray); margin: 0 0 16px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--charcoal-2); }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal-2);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switch { position: relative; margin-left: 6px; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal-2);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--charcoal-2); }
.lang-btn svg { flex: none; }
.lang-btn .chev { transition: transform 0.15s ease; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 150px;
  display: none;
  z-index: 200;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-2);
}
.lang-menu li a:hover { background: var(--bg-alt); }
.lang-menu li a.lang-active { color: var(--green-dark); font-weight: 700; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
}
.nav-links-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav-links-mobile.open { max-height: 420px; }
.nav-links-mobile li { border-top: 1px solid var(--border); }
.nav-links-mobile a {
  display: block;
  padding: 14px 24px;
  font-weight: 500;
  color: var(--charcoal-2);
}
.nav-links-mobile li:last-child { padding: 14px 24px; }
.nav-links-mobile li:last-child a { padding: 0; text-align: center; }

/* ===== Hero ===== */
.hero {
  padding: 84px 0 40px;
  background: radial-gradient(1100px 480px at 80% -10%, var(--green-light), transparent 60%), var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--green); }
.hero-sub {
  font-size: 1.12rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 25px 40px rgba(30, 40, 30, 0.18));
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle, #f0f7ee 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Stat strip */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--charcoal);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 24px;
}
.stat { text-align: center; color: #fff; }
.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}
.stat span { font-size: 0.82rem; color: #c4c8c4; letter-spacing: 0.02em; }

/* ===== Feature cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-dark);
}
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; color: var(--gray); }
.card ul li { margin-bottom: 6px; }

/* ===== Split / engineering section ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-reverse .split-copy { order: 1; }
.split-media img { border-radius: var(--radius); }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}
.feature-list strong { display: block; color: var(--charcoal); margin-bottom: 2px; }
.feature-list p { margin: 0; font-size: 0.94rem; }

/* ===== Screws ===== */
.screw-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.screw-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px 16px;
  text-align: center;
}
.screw-item img { margin: 0 auto 10px; height: 90px; width: auto; }
.screw-item span { font-size: 0.82rem; color: var(--gray); }

/* ===== Applications ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.app-item {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.app-item h3 { margin-bottom: 6px; font-size: 1.02rem; }
.app-item p { margin: 0; font-size: 0.92rem; }

/* ===== Specs table ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
table.specs {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}
table.specs th, table.specs td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.specs thead th {
  background: var(--charcoal);
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0;
}
table.specs thead th:first-child { border-top-left-radius: var(--radius); }
table.specs thead th:last-child { border-top-right-radius: var(--radius); }
table.specs tbody tr:nth-child(even) { background: var(--bg-alt); }
table.specs tbody th {
  color: var(--charcoal-2);
  font-weight: 600;
  background: transparent;
}
table.specs tbody tr:last-child td, table.specs tbody tr:last-child th { border-bottom: none; }
.specs-note { font-size: 0.85rem; color: var(--gray-light); margin-top: 14px; }

.tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
}
.tab-btn.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal), #23272b);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c4c8c4; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: #c4c8c4; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid img { height: 30px; margin-bottom: 16px; }
.footer-grid p { color: #9aa09c; font-size: 0.92rem; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8a908c;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-media { order: 1; }
  .split-reverse .split-copy { order: 2; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-links-mobile { display: block; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .app-grid { grid-template-columns: 1fr; }
  .screw-row { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
}
