/* ──────────────────────────────────────────────────────
   Chalkstream Digital — Landing Page
   Palette: deep blues inspired by chalk-stream water
   Typography: DM Serif Display (headings) + Inter (body)
   ────────────────────────────────────────────────────── */

:root {
  --stream-deep: #0c2340;
  --stream-mid: #1a4a7a;
  --stream-light: #3a7cbd;
  --stream-pale: #b8d4e8;
  --stream-ghost: #e8f1f8;
  --stream-white: #f7fafc;
  --accent: #4ecdc4;
  --accent-dim: #3aafa7;
  --text: #1a2332;
  --text-mid: #4a5568;
  --text-light: #8892a8;
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --card-hover: 0 8px 40px rgba(12, 35, 64, 0.14);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--stream-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--stream-deep);
  margin-bottom: 1.5rem;
}

/* ── Nav ───────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 35, 64, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--stream-deep);
}

.nav-logo-full {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--stream-deep);
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--stream-deep);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  opacity: 0.6;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.65) 0%, rgba(26, 74, 122, 0.4) 50%, rgba(58, 124, 189, 0.25) 100%);
  z-index: 1;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--stream-pale);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-accent {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--stream-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

/* ── Buttons ───────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--stream-deep);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* ── About ─────────────────────────────────────────── */

.about {
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--stream-deep);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

/* ── Products ──────────────────────────────────────── */

.products {
  padding: 5rem 2rem;
  background: var(--stream-ghost);
}

.products-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--card-hover);
}

.product-card-reverse {
  direction: rtl;
}

.product-card-reverse > * {
  direction: ltr;
}

.product-screenshot {
  border-radius: 10px;
  overflow: hidden;
  background: var(--stream-ghost);
}

.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.troutlog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: linear-gradient(135deg, var(--stream-deep) 0%, var(--stream-mid) 100%);
}

.troutlog-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.troutlog-logo-img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.product-info h3 {
  font-size: 1.6rem;
  color: var(--stream-deep);
  margin-bottom: 0.3rem;
}

.product-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stream-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-info p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.product-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.product-link:hover {
  color: var(--stream-deep);
}

.product-link-soon {
  color: var(--text-light);
  font-style: italic;
}

/* ── Team ──────────────────────────────────────────── */

.team {
  padding: 5rem 2rem;
}

.team-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.team-intro {
  max-width: 750px;
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-member {
  background: var(--white);
  border: 1px solid rgba(12, 35, 64, 0.06);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.3s;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}

.team-member.human {
  border-left: 4px solid var(--stream-deep);
}

.team-member.ai {
  border-left: 4px solid var(--accent);
}

.team-avatar {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.2rem;
  color: var(--stream-deep);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stream-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.team-member p:last-child {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.team-footnote {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 750px;
  line-height: 1.7;
}

/* ── Contact ───────────────────────────────────────── */

.contact {
  padding: 5rem 2rem;
  background: var(--stream-ghost);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.contact .btn-primary {
  margin-bottom: 1.5rem;
}

.contact-location {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Footer ────────────────────────────────────────── */

.footer {
  padding: 2rem;
  background: var(--stream-deep);
  color: var(--stream-pale);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
}

/* ── Scroll Reveal Animations ──────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for product cards and team members */
.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.15s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }
.product-card:nth-child(4) { transition-delay: 0.45s; }

.team-member:nth-child(1) { transition-delay: 0s; }
.team-member:nth-child(2) { transition-delay: 0.1s; }
.team-member:nth-child(3) { transition-delay: 0.2s; }
.team-member:nth-child(4) { transition-delay: 0.3s; }

/* Hero entrance */
.hero-title {
  animation: heroSlideUp 1s ease forwards;
  opacity: 0;
}

.hero-sub {
  animation: heroSlideUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  animation: heroSlideUp 1s ease 0.4s forwards;
  opacity: 0;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle hover lift on product screenshots */
.product-screenshot img {
  transition: transform 0.4s ease;
}

.product-screenshot:hover img {
  transform: scale(1.02);
}

/* Nav fade-in on load */
.nav {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .product-card,
  .product-card-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 7rem 1.5rem 5rem;
  }

  .product-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
