/* =========================================================
   Think Latitude — AI Website Builder Portal
   Dark theme, gold accents, mobile-first, agency-grade
   ========================================================= */

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

:root {
  --bg:        #0A0A0F;
  --bg-card:   #111118;
  --bg-input:  #16161F;
  --gold:      #D4A853;
  --gold-light:#E8C97A;
  --gold-dim:  #A07D3A;
  --text:      #E8E8EC;
  --text-dim:  #9090A0;
  --text-muted:#606070;
  --white:     #FFFFFF;
  --border:    #222230;
  --success:   #34C759;
  --radius:    12px;
  --radius-lg: 20px;
  --max-w:     1120px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: 1.05rem; color: var(--text-dim); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0F;
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.4);
  color: #0A0A0F;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-light);
}

.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: #0A0A0F !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { color: #0A0A0F !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 { margin-bottom: 20px; }
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.04);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform .5s ease;
}
.preview-mockup:hover { transform: perspective(1000px) rotateY(0deg); }

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot.r { background: #FF5F57; }
.mockup-dot.y { background: #FFBD2E; }
.mockup-dot.g { background: #28CA42; }
.mockup-url {
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--bg-input);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
}

.mockup-body { padding: 28px 24px 32px; }
.mockup-body .mock-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  margin-bottom: 20px;
}
.mockup-body h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--white);
}
.mockup-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.mock-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.mock-nav span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mock-hero-block {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05));
  border: 1px solid rgba(212,168,83,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.mock-hero-block span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.mock-grid-item {
  height: 52px;
  background: var(--bg-input);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 100px 0;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.step-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0F;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.step-card h3 { margin-bottom: 12px; color: var(--white); }
.step-card p  { font-size: 0.95rem; }

.step-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 5px 12px;
  background: rgba(212, 168, 83, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- What You Get ---------- */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(212, 168, 83, 0.02), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: border-color .3s;
}
.feature-card:hover { border-color: rgba(212, 168, 83, 0.2); }

.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  font-size: 1.2rem;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--white); }
.feature-card p  { font-size: 0.9rem; }

/* ---------- Social Proof ---------- */
.social-proof {
  padding: 80px 0;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0.6;
}
.logos-row span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-item p { font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing {
  padding: 100px 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 56px auto 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(212, 168, 83, 0.1);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0A0A0F;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--white);
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  margin: 16px 0;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-list {
  list-style: none;
  margin: 24px 0;
}
.pricing-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.pricing-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Form Section ---------- */
.form-section {
  padding: 100px 0 120px;
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.form-wrapper {
  max-width: 680px;
  margin: 56px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239090A0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option {
  background: var(--bg-card);
  color: var(--text);
}

textarea { resize: vertical; min-height: 120px; }

.form-footer {
  margin-top: 28px;
  text-align: center;
}

.form-footer p {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .check-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: #0A0A0F;
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--white); }
.form-success p  { max-width: 400px; margin: 0 auto; }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .preview-mockup { transform: none; max-width: 360px; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 32px 24px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .pricing-card { padding: 32px 24px; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle glow pulse on hero */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(212, 168, 83, 0.25); }
  50%      { box-shadow: 0 4px 40px rgba(212, 168, 83, 0.45); }
}
.btn-gold.pulse { animation: glowPulse 3s ease-in-out infinite; }

/* Loading spinner for form */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: #0A0A0F;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
