/* =====================================================
   Andr.ia — styles.css
   Custom styles to complement Tailwind utilities.
   ===================================================== */

:root {
  --brand: #E8540A;
  --ink: #0a0a0a;
  --paper: #f5f5f5;
  --card: #f0f0f0;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; overflow-x: clip; }
/* overflow-x: hidden breaks position: sticky. Use clip on html instead. */

/* Selection */
::selection { background: var(--brand); color: #fff; }

/* =====================================================
   NAV
   ===================================================== */
#nav { --nav-text: #fff; color: var(--nav-text); }
#nav .nav-logo { color: var(--nav-text); }
#nav.is-scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  --nav-text: #0a0a0a;
  color: #0a0a0a;
}
#nav.is-scrolled .nav-link,
#nav.is-scrolled .nav-lang a,
#nav.is-scrolled .nav-burger { color: #0a0a0a; }
.mobile-link { color: #0a0a0a; padding: 0.25rem 0; }

/* =====================================================
   HERO
   ===================================================== */
.hero-glow {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(232,84,10,0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(255,255,255,0.06), transparent 60%);
}
.hero-fade { animation: heroFade 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50%      { transform: translate(-50%, 6px); opacity: 0.7; }
}

/* =====================================================
   SHARED — section label
   ===================================================== */
.section-label {
  color: var(--brand);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =====================================================
   PROBLEM SECTION
   ===================================================== */
.problem-item { position: relative; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.12); text-align: center; }
.problem-icon {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
.problem-icon svg { width: 40px; height: 40px; }
@media (min-width: 768px) { .problem-item { text-align: left; } }


/* =====================================================
   WHAT ANDR.IA DOES — cards
   ===================================================== */
.what-card {
  position: relative;
  background: var(--card);
  padding: 1.75rem 1.5rem;
  border: 1px solid transparent;
  transition:
    transform 450ms cubic-bezier(.16,1,.3,1),
    box-shadow 450ms ease,
    border-color 300ms ease,
    background 300ms ease;
  will-change: transform, box-shadow;
  overflow: hidden;
}
.what-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 60% at 20% 0%, rgba(232,84,10,0.10), transparent 65%);
  transition: opacity 400ms ease;
}
.what-card:hover {
  transform: translateY(-3px);
  background: #ededed;
  border-color: rgba(232,84,10,0.22);
  box-shadow:
    0 18px 40px -16px rgba(232,84,10,0.22),
    0 0 0 1px rgba(232,84,10,0.06);
}
.what-card:hover::before { opacity: 1; }
.what-card:hover .what-num { color: var(--brand); letter-spacing: 0.24em; }

.what-card .what-num {
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 600;
  transition: letter-spacing 400ms cubic-bezier(.16,1,.3,1);
}
.what-card h3 { position: relative; margin-top: 0.75rem; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.what-card p { position: relative; margin-top: 0.75rem; color: rgba(0,0,0,0.62); line-height: 1.6; font-size: 0.975rem; }
@media (min-width: 768px) {
  .what-card { padding: 2rem 1.75rem; }
  .what-card h3 { font-size: 1.625rem; }
}

/* =====================================================
   WHO IT'S FOR — cards
   ===================================================== */
.who-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 1.5rem;
  color: #fff;
  transition: border-color 300ms ease, background 300ms ease, transform 300ms cubic-bezier(.16,1,.3,1);
}
.who-card:hover {
  border-color: rgba(232,84,10,0.5);
  background: rgba(232,84,10,0.04);
  transform: translateY(-2px);
}
.who-card-top { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.who-card-bottom { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); min-height: 8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.who-card .who-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.who-card h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; min-height: 2.4em; }
.who-card p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; line-height: 1.55; }
.who-card .who-fix {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}
.who-card .who-arrow { color: var(--brand); font-size: 1rem; font-weight: 500; margin-top: auto; }
@media (min-width: 768px) { .who-card { padding: 2rem 1.75rem; } }

/* =====================================================
   RESOURCES
   ===================================================== */
.resource-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.resource-num {
  width: 52px; height: 52px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em;
}
.resource-body h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.resource-body p { margin-top: 0.25rem; color: rgba(0,0,0,0.55); font-size: 0.9rem; }
.resource-cta {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 200ms, color 200ms;
  white-space: nowrap;
  cursor: pointer;
}
.resource-cta:hover { background: var(--brand); color: #fff; }
@media (max-width: 639px) {
  .resource-row { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem 0; }
  .resource-cta { grid-column: 2 / -1; justify-self: start; }
}
@media (min-width: 768px) {
  .resource-row { padding: 2rem 0; gap: 2rem; }
  .resource-num { width: 64px; height: 64px; font-size: 1.05rem; }
  .resource-body h3 { font-size: 1.375rem; }
  .resource-body p { font-size: 1rem; }
}

/* Form inputs */
.form-input {
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  padding: 0.75rem 0.875rem;
  font-size: 0.95rem;
  transition: border-color 200ms;
}
.form-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,84,10,0.15); }

/* =====================================================
   FOUNDER
   ===================================================== */
.founder-photo-frame {
  aspect-ratio: 4 / 5;
  background: #e5e5e5;
  max-width: 420px;
  overflow: hidden;
  position: relative;
}
.founder-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-item { padding: 1.25rem 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.5rem 2.25rem 0.5rem 0;
  position: relative;
  transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 300ms ease;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
}
.faq-item[open] summary { color: var(--brand); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 100% no-repeat; }
.faq-item p {
  margin-top: 0.875rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.65;
  max-width: 60rem;
  animation: faqOpen 350ms cubic-bezier(.16,1,.3,1);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
  .faq-item { padding: 1.5rem 0; }
  .faq-item summary { font-size: 1.2rem; }
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.proof-item blockquote {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  border-left: 2px solid var(--brand);
  padding-left: 1.25rem;
}
.proof-item figcaption {
  margin-top: 0.75rem;
  color: rgba(0,0,0,0.55);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .proof-item blockquote { font-size: 1.5rem; }
}

/* =====================================================
   ACCESSIBILITY — reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sequence-track { height: 100vh; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.no-scroll { overflow: hidden; }
