/* ============================================
   JustBuild.ai — Premium Domain Landing Page
   Design System & Styles
   ============================================ */

/* --- Tokens --- */
:root {
  /* Colors */
  --color-bg: #0a0e1a;
  --color-bg-card: rgba(15, 23, 42, 0.65);
  --color-bg-card-solid: #0f172a;
  --color-surface: #1e293b;
  --color-border: rgba(59, 130, 246, 0.15);
  --color-border-hover: rgba(59, 130, 246, 0.35);
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-heading: #f8fafc;
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-gold: #f5a623;
  --color-gold-hover: #fbbf24;
  --color-success: #22d3ee;
  --color-pink: #ec4899;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-py: 6rem;
  --section-py-sm: 3.5rem;
  --container-max: 1100px;
  --container-px: 1.25rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.12);
  --shadow-cta: 0 0 20px rgba(245, 166, 35, 0.35);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

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

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.08);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.65;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), #e09400);
  color: #0a0e1a;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--color-gold-hover),
    var(--color-gold)
  );
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent-light);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  background: rgba(59, 130, 246, 0.08);
}

/* ==============================
   HEADER / NAV
   ============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  /* border-radius is handled inside the SVG rx */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.logo-text span {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 210;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent-light);
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--color-gold) !important;
  border: 1px solid rgba(245, 166, 35, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: rgba(245, 166, 35, 0.1) !important;
  border-color: var(--color-gold) !important;
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--container-px) 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 50% at 50% 45%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 40% at 75% 25%,
      rgba(236, 72, 153, 0.04) 0%,
      transparent 55%
    );
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-bg.webp") center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-success);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(
    135deg,
    var(--color-accent-light),
    var(--color-pink)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p,
.hero .hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.hero .hero-detail {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--color-text-muted);
  opacity: 0.75;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   VALUE PROPOSITION GRID
   ============================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--color-border);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==============================
   USE CASES
   ============================== */
.use-cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.use-case-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.use-case-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  color: var(--color-success);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.use-case-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.35rem;
}

.use-case-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==============================
   SOCIAL PROOF
   ============================== */
.proof-section {
  text-align: center;
}

.proof-quote {
  max-width: 650px;
  margin: 2.5rem auto 0;
  padding: 2.5rem;
  position: relative;
}

.proof-quote::before {
  content: '"';
  position: absolute;
  top: -0.25rem;
  left: 1.25rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
}

.proof-quote p {
  font-size: 1.15rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.proof-author {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: normal;
}

.proof-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.proof-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
}

.proof-badge-icon {
  font-size: 1rem;
}

/* ==============================
   COMPARABLE SALES
   ============================== */
.comps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.comp-item {
  text-align: center;
  padding: 1.25rem 1rem;
}

.comp-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 0.35rem;
}

.comp-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold), #e09400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.comp-year {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.comps-source {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  opacity: 0.7;
}

.comps-source a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.3);
  transition: text-decoration-color 0.2s ease;
}

.comps-source a:hover {
  text-decoration-color: var(--color-accent-light);
}

/* ==============================
   CTA BAND
   ============================== */
.cta-band {
  text-align: center;
  padding: 5rem var(--container-px);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(236, 72, 153, 0.06) 100%
  );
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   FAQ
   ============================== */
.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-accent-light);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==============================
   TRUST SIGNALS
   ============================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.trust-item {
  text-align: center;
  padding: 2rem 1.25rem;
}

.trust-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 0.35rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==============================
   FOUNDER
   ============================== */
.founder-card {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.founder-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 0.25rem;
}

.founder-title {
  font-size: 0.9rem;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
}

.founder-content > p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.founder-note {
  font-style: italic;
  color: var(--color-text) !important;
  opacity: 0.85;
}

.founder-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.founder-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  transition: color 0.2s ease;
}

.founder-links a:hover {
  color: var(--color-gold);
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  text-align: center;
  padding: 2.5rem var(--container-px);
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-accent-light);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* ==============================
   SCROLL ANIMATIONS
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0s;
}
.reveal-stagger.visible > *:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-stagger.visible > *:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal-stagger.visible > *:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-sm);
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 200;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-links .nav-cta {
    font-size: 1.1rem !important;
    padding: 0.75rem 2rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem var(--container-px) 3.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
  .use-cases-list {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .glass-card {
    padding: 1.5rem;
  }
  .proof-quote {
    padding: 1.5rem;
  }

  .founder-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .comps-grid {
    grid-template-columns: 1fr 1fr;
  }
}
