/* ═══════════════════════════════════════════════════════
   Tayzoware — Premium Landing Page Styles
   ═══════════════════════════════════════════════════════ */

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

:root {
  --black: #000000;
  --bg-deep: #050507;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.55);
  --text-tertiary: rgba(245, 245, 247, 0.35);

  --accent-cyan: #00d4ff;
  --accent-blue: #3b82f6;
  --accent-purple: #7b61ff;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7b61ff 100%);

  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --nav-height: 60px;
  --section-pad: clamp(80px, 12vh, 160px);
  --content-max: 1120px;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-stack);
  background: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: var(--text-primary);
}


/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 980px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.45);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 20px;
  position: relative;
}

.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease-out);
}

.nav-mobile-toggle span:first-child { top: 4px; }
.nav-mobile-toggle span:last-child { bottom: 4px; }

.nav-mobile-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-mobile-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

.mobile-nav-cta {
  color: var(--accent-cyan);
  margin-top: 16px;
}


/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -55%);
  background: radial-gradient(ellipse at center,
    rgba(0, 140, 200, 0.08) 0%,
    rgba(90, 50, 180, 0.05) 30%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  animation: ambient-pulse 8s ease-in-out infinite alternate;
}

@keyframes ambient-pulse {
  0% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -55%) scale(1.08); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin-bottom: 56px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #000;
  background: var(--accent-gradient);
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.25), 0 2px 8px rgba(0, 212, 255, 0.15);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
}


/* ── Hero Product Visual ─────────────────────────────── */
.hero-product-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  perspective: 1200px;
}

.product-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 255, 0.12) 0%,
    rgba(123, 97, 255, 0.06) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.product-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 28, 0.9);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(0, 140, 200, 0.05);
  transform: rotateX(2deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease;
}

.product-window:hover {
  transform: rotateX(0deg);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 160px rgba(0, 140, 200, 0.08);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(30, 30, 38, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding-right: 36px;
}

.window-body {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  min-height: 320px;
}

.pane {
  padding: 12px;
}

.pane-sidebar {
  background: rgba(15, 15, 22, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.sidebar-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
  cursor: default;
  transition: background 0.15s ease;
}

.sidebar-item.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
}

.pane-editor {
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
}

.editor-line {
  color: var(--text-primary);
  transition: opacity 0.3s ease;
}

.editor-line.highlight {
  color: var(--text-primary);
}

.editor-line.dim {
  color: var(--text-tertiary);
}

.word-active {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
  padding: 1px 4px;
  border-radius: 3px;
  border-bottom: 2px solid var(--accent-cyan);
}

.pane-copilot {
  background: rgba(10, 10, 18, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copilot-header {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0, 212, 255, 0); }
}

.copilot-card {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.copilot-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.copilot-text {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}


/* ── Scroll Hint ─────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(-8px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}


/* ── Sections (shared) ───────────────────────────────── */
.section {
  position: relative;
  padding: var(--section-pad) 24px;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.overline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.section-body {
  font-size: clamp(0.975rem, 1.8vw, 1.125rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 16px;
}


/* ── Positioning ─────────────────────────────────────── */
.positioning {
  border-top: 1px solid var(--border-subtle);
}

.positioning-content {
  max-width: 680px;
}


/* ── Featured Product ────────────────────────────────── */
.product {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
}

.product-ambient-orb {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(123, 97, 255, 0.06) 0%,
    rgba(0, 212, 255, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.product-intro {
  margin-bottom: 48px;
}

.product-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.product-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
}

.product-showcase {
  margin-bottom: 64px;
}

.product-icon-display {
  position: relative;
  display: inline-block;
}

.icon-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(123, 97, 255, 0.08) 40%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
}

.product-icon-img {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 212, 255, 0.08);
  transition: transform 0.5s var(--ease-out);
}

.product-icon-display:hover .product-icon-img {
  transform: scale(1.05) translateY(-4px);
}


/* ── Feature Cards ───────────────────────────────────── */
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
  text-align: left;
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.35s var(--ease-out);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── Product CTA ─────────────────────────────────────── */
.product-cta-block {
  text-align: center;
}

.product-cta-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 12px;
}


/* ── Philosophy ──────────────────────────────────────── */
.philosophy {
  border-top: 1px solid var(--border-subtle);
}

.philosophy-content {
  max-width: 880px;
}

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

.philosophy-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.35s var(--ease-out);
}

.philosophy-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.phil-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  opacity: 0.5;
}

.phil-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.phil-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ── Support ─────────────────────────────────────────── */
.support {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.support-content {
  max-width: 520px;
  margin: 0 auto;
}

.support .section-body {
  margin-left: auto;
  margin-right: auto;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 980px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.support-email svg {
  color: var(--accent-cyan);
  opacity: 0.7;
}

.support-email:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.08);
}


/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
}

.footer-logo-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

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

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}


/* ── Reveal Animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.hero-product-visual.reveal {
  transform: translateY(40px) scale(0.97);
}

.hero-product-visual.reveal.visible {
  transform: translateY(0) scale(1);
}


/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .pane-sidebar {
    display: none;
  }

  .pane-copilot {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .product-features {
    grid-template-columns: 1fr;
  }
}
