/* ================================================================
   12scribe Landing V3 - Main Styles
   Clean, Minimalist, Monochrome Design
   ================================================================ */

/* ===== BASE ===== */

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "ss03";
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-black);
}

/* ===== NAVIGATION ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--color-bg-primary);
  border-bottom: var(--border-width) solid var(--color-border);
  transition: all var(--transition-base);
}

.nav__container {
  max-width: var(--max-width-2xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
}

.logo {
  position: relative;
  width: 32px;
  height: 32px;
}

.logo__mark {
  width: 100%;
  height: 100%;
  background: var(--color-black);
  border-radius: var(--radius-md);
  position: relative;
}

.logo__mark::after {
  content: '12';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-weight: var(--font-black);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.logo--small .logo__mark {
  width: 24px;
  height: 24px;
}

.logo--small .logo__mark::after {
  font-size: 10px;
}

/* Nav Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: color var(--transition-base);
  position: relative;
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link--cta {
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-6);
  border: var(--border-width-thick) solid var(--color-black);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav__link--cta:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-gray-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: var(--border-width-thick) solid var(--color-black);
}

.btn--outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--large {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* ===== HERO SECTION ===== */

.hero {
  padding-top: calc(72px + var(--section-padding));
  padding-bottom: var(--section-padding);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  max-width: var(--max-width-2xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  align-items: center;
}

/* Hero Content */
.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-6);
}

.accent {
  color: var(--color-accent);
  position: relative;
}

.hero__subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero__stats {
  display: flex;
  gap: var(--space-8);
}

.stat {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}

.stat__value {
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-tight);
}

/* Terminal */
.hero__terminal {
  position: relative;
}

.terminal {
  background: var(--color-black);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-terminal);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  max-width: 600px;
  width: 100%;
}

.terminal__header {
  background: var(--color-gray-900);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-gray-800);
}

.terminal__buttons {
  display: flex;
  gap: var(--space-2);
}

.terminal__button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gray-700);
}

.terminal__button--close {
  background: #FF5F56;
}

.terminal__button--minimize {
  background: #FFBD2E;
}

.terminal__button--maximize {
  background: #27C93F;
}

.terminal__title {
  margin-left: auto;
  color: var(--color-gray-500);
  font-size: var(--text-xs);
}

.terminal__body {
  padding: var(--space-6);
  min-height: 400px;
  color: var(--color-gray-300);
  line-height: var(--leading-relaxed);
}

.terminal__line {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.terminal__prompt {
  color: var(--color-accent);
  user-select: none;
}

.terminal__command {
  color: var(--color-white);
}

.terminal__command::after {
  content: attr(data-text);
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-accent);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal__output {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.terminal__progress {
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 1s;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-gray-800);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--color-accent);
  width: 0;
  animation: progress 2s ease-out forwards;
  animation-delay: 1.5s;
}

@keyframes progress {
  to { width: 100%; }
}

.terminal__result {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 3.5s;
}

.result__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
  padding: var(--space-2) 0;
}

.result__time {
  color: var(--color-accent);
  font-weight: var(--font-semibold);
  min-width: 60px;
}

.result__marker {
  color: var(--color-gray-300);
}

.terminal__complete {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-800);
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 4s;
}

.terminal__success {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-black);
  font-weight: var(--font-bold);
}

.terminal__line--active {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 4.5s;
}

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

/* Decorative Elements */
.hero__decoration {
  position: absolute;
  pointer-events: none;
}

.hero__decoration--1 {
  width: 400px;
  height: 400px;
  border: 2px solid var(--color-gray-100);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  animation: rotate 30s linear infinite;
}

.hero__decoration--2 {
  width: 300px;
  height: 300px;
  border: 2px solid var(--color-gray-100);
  border-radius: 50%;
  bottom: -150px;
  left: -100px;
  animation: rotate 25s linear infinite reverse;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* ===== NUMBERS SECTION ===== */

.numbers {
  padding: var(--section-padding) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.numbers__container {
  max-width: var(--max-width-2xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.number-card {
  text-align: center;
}

.number-card__value {
  font-size: var(--text-6xl);
  font-weight: var(--font-black);
  line-height: 1;
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-4);
}

.number-card__label {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
  max-width: 200px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */

.how {
  padding: var(--section-padding) 0;
  background: var(--color-bg-primary);
}

.how__container {
  max-width: var(--max-width-2xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.how__header {
  margin-bottom: var(--space-20);
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
}

.text-muted {
  color: var(--color-text-muted);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

.how__step {
  position: relative;
}

.step__number {
  font-size: var(--text-7xl);
  font-weight: var(--font-black);
  color: var(--color-gray-100);
  line-height: 1;
  margin-bottom: var(--space-6);
}

.step__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.step__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.step__visual {
  padding: var(--space-8);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini Player */
.mini-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.mini-player__waveform {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 40px;
}

.mini-player__waveform span {
  width: 3px;
  background: var(--color-black);
  border-radius: var(--radius-full);
  animation: wave 1s ease-in-out infinite;
}

.mini-player__waveform span:nth-child(odd) {
  height: 20px;
  animation-delay: 0.1s;
}

.mini-player__waveform span:nth-child(even) {
  height: 30px;
  animation-delay: 0.2s;
}

.mini-player__waveform span:nth-child(3n) {
  height: 25px;
  animation-delay: 0.3s;
}

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.5); }
}

.mini-player__time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

/* AI Process */
.ai-process {
  position: relative;
  width: 100%;
  height: 60px;
}

.ai-process__dots {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

.dot--1 { animation-delay: 0s; }
.dot--2 { animation-delay: 0.2s; }
.dot--3 { animation-delay: 0.4s; }
.dot--4 { animation-delay: 0.6s; }
.dot--5 { animation-delay: 0.8s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}

.ai-process__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--color-gray-300);
}

/* Search Demo */
.search-demo {
  width: 100%;
  max-width: 300px;
}

.search-demo__input {
  width: 100%;
  padding: var(--space-3);
  background: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.search-demo__result {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.highlight {
  background: var(--color-accent);
  color: var(--color-black);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: var(--font-bold);
}

/* ===== COMPARISON ===== */

.comparison {
  padding: var(--section-padding) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.comparison__container {
  max-width: var(--max-width-xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.comparison__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.comparison__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  position: relative;
}

.comparison__column {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--color-bg-primary);
}

.comparison__column--before {
  border: 2px solid var(--color-border);
}

.comparison__column--after {
  border: 2px solid var(--color-black);
  position: relative;
}

.comparison__column--after::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  opacity: 0.1;
  z-index: -1;
}

.comparison__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
}

.comparison__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  border-radius: 50%;
}

.icon--cross {
  background: var(--color-gray-100);
  color: var(--color-text-muted);
  font-size: var(--text-xl);
}

.icon--check {
  background: var(--color-accent);
  color: var(--color-black);
}

.comparison__divider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg-secondary);
  padding: var(--space-4);
  z-index: 1;
  color: var(--color-accent);
}

/* ===== PRICING ===== */

.pricing {
  padding: var(--section-padding) 0;
  background: var(--color-bg-primary);
}

.pricing__container {
  max-width: var(--max-width-xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.pricing__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.price-card {
  padding: var(--space-10);
  background: var(--color-bg-primary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-base);
}

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

.price-card--featured {
  border-color: var(--color-black);
  transform: scale(1.05);
}

.price-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--color-accent);
  color: var(--color-black);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
}

.price-card__header {
  margin-bottom: var(--space-8);
}

.price-card__name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.currency {
  font-size: var(--text-2xl);
  color: var(--color-text-muted);
}

.value {
  font-size: var(--text-5xl);
  font-weight: var(--font-black);
  line-height: 1;
}

.value--custom {
  font-size: var(--text-3xl);
}

.price-card__period {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  flex-grow: 1;
}

.price-card__features li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.price-card__features li:last-child {
  border-bottom: none;
}

.price-card__features strong {
  color: var(--color-text-primary);
  font-weight: var(--font-semibold);
}

.price-card__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ===== CTA ===== */

.cta {
  padding: var(--section-padding) 0;
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta__container {
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-6);
}

.cta__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
}

.cta__action {
  margin-bottom: var(--space-8);
}

.cta__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.stars {
  display: flex;
  gap: var(--space-1);
  color: var(--color-accent);
}

.cta__decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate 40s linear infinite;
}

/* ===== FOOTER ===== */

.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-black);
  color: var(--color-white);
}

.footer__container {
  max-width: var(--max-width-2xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-gray-800);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.footer__logo .logo__mark {
  background: var(--color-white);
}

.footer__logo .logo__mark::after {
  color: var(--color-black);
}

.footer__tagline {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__column a {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer__column a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.footer__social {
  display: flex;
  gap: var(--space-6);
}

.footer__social a {
  color: var(--color-gray-400);
  transition: color var(--transition-base);
}

.footer__social a:hover {
  color: var(--color-white);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-16);
  }

  .hero__content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero__actions {
    align-items: center;
  }

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

  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .comparison__divider {
    display: none;
  }

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

  .price-card--featured {
    transform: scale(1);
  }

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

  .footer__links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nav__menu {
    gap: var(--space-4);
  }

  .hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero__stats {
    justify-content: center;
  }

  .terminal {
    font-size: var(--text-xs);
  }

  .numbers__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}