/* Tri Tes Briques — landing page styles.
   Palette inspired by the logo: deep navy ink, vivid brick red / yellow / blue
   accents, warm gold stroke. Lively but still clean. No framework. */

:root {
  --ink: #1b2a4a;          /* deep navy (logo text) */
  --ink-soft: #566178;
  --bg: #ffffff;
  --bg-alt: #f3f6fc;
  --line: #e3e9f2;

  --brick-red: #e2231a;
  --brick-yellow: #f6c016;
  --brick-blue: #1f6fe0;
  --brick-blue-dark: #1559bf;
  --gold: #f0a500;
  --green: #1b9e58;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(27, 42, 74, 0.12);
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a {
  color: var(--brick-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.container-narrow {
  max-width: 640px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover {
  text-decoration: none;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.header-nav .nav-cta {
  color: #fff;
  background: var(--brick-blue);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.header-nav .nav-cta:hover {
  background: var(--brick-blue-dark);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--brick-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #c51d15;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--brick-blue);
  color: var(--brick-blue);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 68px 0 72px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(31, 111, 224, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  position: relative;
  overflow: hidden;
}
/* Gold stroke echo from the logo */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 18px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-size: 1.9rem;
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 12px;
}
/* Little brick-colored underline accent on headings */
.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brick-red), var(--brick-yellow), var(--brick-blue));
}
.section-problem p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 780px;
}
.section-intro {
  color: var(--ink-soft);
  margin: -10px 0 30px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  border-top: 4px solid var(--brick-blue);
}
.feature:nth-child(3n + 1) {
  border-top-color: var(--brick-red);
}
.feature:nth-child(3n + 2) {
  border-top-color: var(--brick-yellow);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.section-alt .feature {
  background: #fff;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Screenshots ---------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.screenshot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.screenshot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}
.screenshot figcaption {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Waitlist ---------- */
.section-waitlist {
  text-align: center;
  background:
    radial-gradient(900px 300px at 50% 120%, rgba(246, 192, 22, 0.14), transparent 60%),
    var(--bg);
}
.section-waitlist h2::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-waitlist p {
  color: var(--ink-soft);
}
.waitlist-form {
  display: flex;
  gap: 10px;
  margin: 26px 0 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input[type='email'] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
}
.waitlist-form input[type='email']:focus {
  outline: none;
  border-color: var(--brick-blue);
}
.waitlist-message {
  min-height: 1.4em;
  font-weight: 600;
  margin: 6px 0;
}
.waitlist-message.is-success {
  color: var(--green);
}
.waitlist-message.is-error {
  color: var(--brick-red);
}
.privacy-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 500px;
  margin: 10px auto 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: #c6d2e6;
}
.site-footer p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.footer-legal {
  color: #8094b3;
  font-size: 0.8rem;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    order: -1;
  }
}
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
  .header-nav {
    gap: 14px;
  }
  .header-nav a:not(.nav-cta) {
    display: none;
  }
  .brand-logo {
    height: 44px;
  }
}
