/* VetOS Landing — Dark Futuristic Theme
   Inspired by Linear/Raycast aesthetic, adapted for veterinary AI */

/* ========== CSS Variables ========== */
:root {
  /* Primary — Teal */
  --primary: #14B8A6;
  --primary-dim: #0F766E;
  --primary-bright: #2DD4BF;
  --primary-glow: rgba(20, 184, 166, 0.15);
  --primary-glow-strong: rgba(20, 184, 166, 0.3);

  /* Accent — Amber */
  --accent: #F59E0B;
  --accent-dim: #D97706;

  /* Backgrounds */
  --bg: #08090D;
  --bg-elevated: #0F1117;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #F0F0F3;
  --text-secondary: #8B8D98;
  --text-tertiary: #5C5E6A;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-primary: rgba(20, 184, 166, 0.3);

  /* LINE / Google */
  --line-green: #06C755;
  --google-blue: #4285F4;

  /* Layout */
  --max-width: 1140px;
  --nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== Utility ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll-triggered fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-brand:hover { text-decoration: none; }

.nav-brand svg { width: 32px; height: 32px; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switch {
  position: relative;
  font-size: 13px;
}
.lang-switch select {
  appearance: none;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 24px 4px 8px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.lang-switch select:hover { border-color: var(--border-hover); }
.lang-switch::after {
  content: '\25BE';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 11px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--primary-bright);
  color: #000;
  box-shadow: 0 0 24px var(--primary-glow-strong);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  color: var(--text);
}

/* Official-style login buttons */
.btn-line {
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
}
.btn-line:hover {
  background: #05b34c;
  color: #fff;
  box-shadow: 0 0 20px rgba(6, 199, 85, 0.3);
}
.btn-line img, .btn-line svg { height: 20px; width: auto; }

.btn-google {
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid #dadce0;
}
.btn-google:hover {
  background: #f8f9fa;
  color: #1f1f1f;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-google img, .btn-google svg { height: 20px; width: auto; }

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

/* Gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
}
.hero-stats .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.hero-stats .stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========== Demo Terminal ========== */
.demo-terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 48px rgba(0,0,0,0.4),
    0 0 80px var(--primary-glow);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.demo-titlebar .dots {
  display: flex;
  gap: 6px;
}
.demo-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.demo-titlebar .dot:nth-child(1) { background: #FF5F57; }
.demo-titlebar .dot:nth-child(2) { background: #FEBC2E; }
.demo-titlebar .dot:nth-child(3) { background: #28C840; }
.demo-titlebar .title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}

.demo-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 320px;
}

.demo-line {
  opacity: 0;
  transform: translateY(4px);
  animation: line-appear 0.4s forwards;
}
.demo-line.comment { color: var(--text-tertiary); }
.demo-line.recording { color: var(--accent); }
.demo-line.transcript { color: var(--text-secondary); font-style: italic; }
.demo-line.label { color: var(--primary); font-weight: 600; }
.demo-line.content { color: var(--text); padding-left: 16px; }
.demo-line.processing { color: var(--primary-bright); }
.demo-line .cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

@keyframes line-appear {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Problem Section ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ========== How It Works (3 steps) ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.step-card:hover {
  border-color: var(--border-primary);
  box-shadow: 0 0 40px var(--primary-glow);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-icon {
  margin-bottom: 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Features Bento Grid ========== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bento-card:hover {
  border-color: var(--border-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 40px var(--primary-glow);
}

.bento-card.large {
  grid-column: span 2;
}

.bento-icon {
  width: 40px;
  height: 40px;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Copilot Demo ========== */
.copilot-demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 48px auto 0;
  overflow: hidden;
}

.copilot-messages {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.copilot-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.copilot-msg.user { justify-content: flex-end; }

.copilot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.copilot-avatar.ai { background: rgba(20, 184, 166, 0.15); color: var(--primary); }
.copilot-avatar.human { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

.copilot-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 85%;
}
.copilot-msg.user .copilot-bubble {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.15);
  color: var(--text);
}
.copilot-msg.ai .copilot-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.copilot-cmd {
  color: var(--primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.copilot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-tertiary);
}
.copilot-input kbd {
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  border-color: var(--border-hover);
}
.pricing-card.featured {
  border-color: var(--border-primary);
  background: rgba(20, 184, 166, 0.04);
  position: relative;
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-card h3 {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-tag {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 24px;
}
.pricing-price .old {
  font-size: 16px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-right: 8px;
}
.pricing-price .current {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-price .period {
  font-size: 14px;
  color: var(--text-tertiary);
}

.pricing-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features .check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========== CTA Section ========== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ========== Trust bar ========== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.trust-item svg { opacity: 0.5; }

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer a {
  color: var(--text-tertiary);
  font-size: 14px;
  transition: color 0.2s;
}
.footer a:hover { color: var(--text); text-decoration: none; }

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========== Legal pages (reuse) ========== */
.legal {
  padding: 120px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.legal .updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; color: var(--text); }
.legal h3 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; color: var(--text); }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.legal strong { color: var(--text); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.large { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero .subtitle { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.large { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stats .stat { flex-direction: row; gap: 8px; align-items: baseline; }
}
