/* Component Styles - Cursor Design System */

/* === Navigation === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #231f20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-logo svg,
.nav-logo .logo-icon {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.nav-logo-adatech .logo-text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #f7f7f4;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: #f7f7f4;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: #f7f7f4;
}

.nav-cta {
  margin-left: var(--space-lg);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex !important;
    order: -1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #231f20;
    padding: 20px;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 16px;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Buttons (Cursor style) === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.125rem;  /* 10px 18px */
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--leading-none);
  border-radius: var(--rounded-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: #f54e00;
  color: #ffffff;
  height: 40px;
  border-radius: 8px;
}

.btn-primary:hover {
  background: #e84a00;
  color: #ffffff;
}

.btn-primary:active {
  background: #c03d00;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #231f20;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.btn-ghost {
  background: transparent;
  color: var(--body);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-dark {
  background: #231f20;
  color: #ffffff;
}

.btn-dark:hover {
  background: #000000;
  color: #ffffff;
}

/* Download button (Cursor style - ink background) */
.btn-download {
  background: var(--ink);
  color: var(--canvas);
  padding: 0.75rem 1.25rem;  /* 12px 20px */
  height: 44px;
}

.btn-download:hover {
  opacity: 0.9;
}

.btn-lg {
  padding: 0.75rem 1.25rem;  /* 12px 20px */
  font-size: var(--text-body-sm);
}

.btn-icon {
  padding: var(--space-sm);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* === Cards (Cursor style - hairline borders, no shadows) === */

.card {
  background: #fafaf7;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  background: #231f20;
  border-color: #231f20;
}

.card:hover h3 {
  color: #f54e00;
}

.card:hover p,
.card:hover .card-number {
  color: #f7f7f4;
}

.card:hover .pill {
  background: rgba(247, 247, 244, 0.15);
  color: #f7f7f4;
}

/* Card inverted (featured) */
.card-inverted {
  background: #231f20;
  border-color: #231f20;
}

.card-inverted h3,
.card-inverted p {
  color: #f7f7f4;
}

.card-inverted .card-icon {
  background: rgba(247, 247, 244, 0.1);
  color: #f7f7f4;
}

.card-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-base);
  color: #f54e00;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.card:hover .card-icon {
  color: #f7f7f4;
}

.card h3 {
  font-family: 'Hanken Grotesk', var(--font-display);
  margin-bottom: var(--space-xs);
  font-size: var(--text-display-sm);
  font-weight: 500;
}

.card p {
  font-family: 'Hanken Grotesk', var(--font-display);
  color: var(--body);
  font-size: var(--text-body-sm);
  font-weight: 400;
}

/* Feature card variant */
.card-feature {
  padding: var(--space-lg);
}

.card-feature .card-number {
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-caption-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

/* Problem card variant */
.card-problem {
  text-align: left;
  padding: var(--space-xl);
}

/* === Hero Section === */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  background: var(--canvas);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xxs) var(--space-sm);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-full);
  font-size: var(--text-caption);
  color: var(--body);
  margin-bottom: var(--space-lg);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: var(--rounded-full);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--ink);
}

.hero-subtitle {
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-lg);
  color: var(--body);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-base);
}

/* Hero Split Layout - Coinbase style */
.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: var(--canvas);
}

.hero-split > .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 64px;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-split .hero-content {
  max-width: 100%;
}

.hero-split .hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Hero animations - AdaTech */
.hero-split .hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroContentReveal 0.8s ease-out 0.3s forwards;
}

.hero-split .hero-visual {
  opacity: 0;
  transform: translateX(30px);
  animation: heroVisualReveal 1s ease-out 0.6s forwards;
}

@keyframes heroContentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .hero-split > .container {
    padding: 64px 40px;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-split .hero-subtitle {
    margin-inline: auto;
  }

  .hero-split .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-image {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .hero-split > .container {
    padding: 48px 20px;
  }

  .hero-grid-layout {
    gap: 32px;
  }

  .hero-split .hero-cta {
    flex-direction: column;
  }

  .hero-split .hero-cta .btn {
    width: 100%;
  }

  .hero-logo-image {
    max-width: 300px;
  }
}

/* Hero background (subtle on light theme) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}


/* Grid pattern (subtle) */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* === Section with soft background === */

.section-soft {
  background: var(--canvas-soft);
}

/* === Timeline / Process (Cursor style) === */

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--hairline));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 1px);
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--canvas);
  border: 2px solid var(--primary);
  border-radius: var(--rounded-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item:hover .timeline-marker {
  background: #231f20;
  border-color: #f54e00;
}

.timeline-step {
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-caption-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-xxs);
}

.timeline-item h3 {
  font-family: 'Hanken Grotesk', var(--font-display);
  margin-bottom: var(--space-xs);
  font-size: var(--text-display-sm);
  font-weight: 500;
}

.timeline-item p {
  font-family: 'Hanken Grotesk', var(--font-display);
  font-weight: 400;
  color: var(--body);
}

/* === Stats === */

.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: var(--text-display-lg);
  font-weight: var(--weight-normal);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}

.stat-value span {
  color: var(--primary);
}

.stat-label {
  font-size: var(--text-caption);
  color: var(--muted);
  margin-top: var(--space-xxs);
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* === CTA Section === */

.cta-section {
  background: var(--canvas);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin-inline: auto;
}

.cta-content h2 {
  margin-bottom: var(--space-base);
  color: var(--ink);
}

.cta-content p {
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* === Form (Cursor style) === */

.form-group {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  margin-inline: auto;
}

.form-input {
  flex: 1;
  padding: 0.75rem var(--space-base);  /* 12px 16px */
  background: #ffffff;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  color: var(--ink);
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-md);
  font-weight: 400;
  height: 44px;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  border-color: var(--ink);
  outline: none;
}

@media (max-width: 480px) {
  .form-group {
    flex-direction: column;
  }

  .form-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Footer === */

.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: none;
  background: #231f20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  align-items: start;
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 400;
  max-width: 280px;
  color: #f7f7f4;
}

.footer-title {
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-caption-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #f7f7f4;
  margin-bottom: var(--space-base);
}

.footer-links a {
  display: block;
  padding: var(--space-xxs) 0;
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: #f7f7f4;
}

.footer-links a:hover {
  color: #f7f7f4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(247, 247, 244, 0.1);
  font-family: 'Hanken Grotesk', var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: #f7f7f4;
}

.footer-social {
  display: flex;
  gap: var(--space-base);
}

.footer-social a {
  color: #f7f7f4;
}

.footer-social a:hover {
  color: #f7f7f4;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: span 3;
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-base);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* === Pills / Tags (Cursor style) === */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
  padding: var(--space-xxs) var(--space-sm);
  background: var(--surface-strong);
  border-radius: var(--rounded-full);
  font-size: var(--text-caption-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
}

.pill-primary {
  background: var(--glow-primary);
  color: var(--primary);
}

/* Timeline pills (AI action stages) */
.pill-thinking { background: var(--timeline-thinking); color: var(--ink); }
.pill-grep { background: var(--timeline-grep); color: var(--ink); }
.pill-read { background: var(--timeline-read); color: var(--ink); }
.pill-edit { background: var(--timeline-edit); color: var(--ink); }
.pill-done { background: var(--timeline-done); color: var(--on-primary); }

/* === Divider === */

.divider {
  height: 1px;
  background: var(--hairline);
  margin: var(--space-section) 0;
}

/* === 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;
}

/* === FAQ Section === */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  margin-bottom: var(--space-base);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-family: 'Urbanist', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
  font-family: 'Urbanist', sans-serif;
  color: var(--body);
  line-height: 1.7;
}

/* === Scroll to Top === */

.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(245, 78, 0, 0.3);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* === Additional Responsive Styles === */

/* Hero subtitle on mobile */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Timeline responsive */
@media (max-width: 1024px) {
  .timeline {
    padding-left: var(--space-xl);
  }

  .timeline-marker {
    left: calc(-1 * var(--space-xl) + 1px);
  }
}

@media (max-width: 768px) {
  .timeline {
    padding-left: var(--space-lg);
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-marker {
    left: calc(-1 * var(--space-lg) + 1px);
    width: 12px;
    height: 12px;
  }

  .timeline-item h3 {
    font-size: 1.125rem;
  }

  .timeline-item p {
    font-size: 0.9375rem;
  }
}

/* Stats responsive mobile */
@media (max-width: 640px) {
  .stats {
    padding: var(--space-xl) 0;
    gap: var(--space-xl);
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }
}

/* Card responsive */
@media (max-width: 640px) {
  .card {
    padding: var(--space-lg);
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.875rem;
  }

  .pill {
    font-size: 0.625rem;
    padding: 3px 8px;
  }
}

/* Section header responsive */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.5rem;
  }
}

/* Section padding responsive */
@media (max-width: 768px) {
  .section {
    padding-block: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: var(--space-xl);
  }
}

/* CTA Section responsive */
@media (max-width: 640px) {
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 0.9375rem;
  }
}

/* === FESR Section === */
.fesr-section {
  background: #ffffff;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fesr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.fesr-logo {
  max-width: 100%;
  width: auto;
  max-height: 120px;
  object-fit: contain;
}

.fesr-text {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
}

@media (max-width: 768px) {
  .fesr-section {
    padding: var(--space-lg) 0;
  }

  .fesr-logo {
    max-height: 80px;
  }

  .fesr-text {
    font-size: 0.6875rem;
  }
}
