:root {
  --bg-color: #030305;
  --bg-surface: rgba(20, 20, 28, 0.4);
  --bg-surface-hover: rgba(30, 30, 42, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --accent-color: #7c6ef6;
  --accent-gradient: linear-gradient(135deg, #7c6ef6, #a89bff);
  --highlight-gradient: linear-gradient(135deg, #40b5a6, #a8fff2);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;
  --nav-height: 72px;
  
  --mockup-bg: rgba(25, 25, 30, 0.8);
  --mockup-border: rgba(255, 255, 255, 0.15);
  --mockup-chat-msg: rgba(60, 60, 67, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5em;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Utilities */
.text-gradient {
  background: var(--highlight-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  transform: scale(1.02);
  background: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all 0.3s ease;
}

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

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-link {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.nav-actions .btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Sections */
section {
  padding: 160px 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Ambient glow */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 1100px;
}

.hero p {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 700px;
  margin-bottom: 48px;
}

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

.hero-mockup {
  margin-top: 100px;
  width: 100%;
  max-width: 1000px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: var(--mockup-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(100px) scale(0.95);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease;
}

.hero-mockup.in-view {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mockup-header {
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #444;
}

.mockup-dot.r { background: #ff5f56; }
.mockup-dot.y { background: #ffbd2e; }
.mockup-dot.g { background: #27c93f; }

.mockup-body {
  height: 400px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.mockup-msg {
  padding: 14px 20px;
  border-radius: 20px;
  max-width: 60%;
  font-size: 1.1rem;
  color: #fff;
}

.mockup-msg-left {
  background: var(--mockup-chat-msg);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mockup-msg-right {
  align-self: flex-end;
  background: var(--accent-gradient);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(124, 110, 246, 0.3);
}

/* Interface Preview */
.interface-preview {
  margin-top: 120px;
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 600px;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 60px 120px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
}

.ip-sidebar {
  width: 80px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 24px;
}

.ip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.ip-icon.active {
  background: rgba(124, 110, 246, 0.15);
  color: var(--accent-color);
  box-shadow: inset 0 0 0 1px rgba(124, 110, 246, 0.3);
}

.ip-list {
  width: 300px;
  background: rgba(255, 255, 255, 0.01);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.ip-list-header {
  height: 72px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-weight: 600;
  font-size: 1.125rem;
}

.ip-chat-item {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 16px;
  cursor: pointer;
}

.ip-chat-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--accent-color);
}

.ip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #40b5a6, #2d8a7e);
  flex-shrink: 0;
}

.ip-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ip-main-header {
  height: 72px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.02);
}

.ip-chat-area {
  flex-grow: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.ip-input-area {
  height: 80px;
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.01);
}

.ip-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 48px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.fc-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
}

.fc-large { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fc-medium { grid-column: span 6; }
.fc-small { grid-column: span 4; }

.fc-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.fc-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.fc-visual {
  flex-grow: 1;
  margin-top: 40px;
  position: relative;
  min-height: 200px;
  border-radius: 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.popular {
  border-color: var(--accent-color);
  box-shadow: 0 0 40px rgba(0, 113, 227, 0.15), inset 0 0 0 1px var(--accent-color);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-features li i {
  color: #27c93f;
  width: 18px;
  height: 18px;
}

.pricing-features li.disabled {
  color: var(--text-secondary);
  opacity: 0.5;
}

.pricing-features li.disabled i {
  color: var(--text-secondary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Compare Table */
.compare-table-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 24px;
}

.compare-table-wrapper.expanded {
  max-height: 2000px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 32px;
}

.compare-table th {
  padding: 24px;
  font-size: 1.125rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.compare-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .ftr-title {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}

.compare-table .check-icon {
  color: var(--highlight-gradient); /* Will use the first color of it */
  stroke: #40b5a6;
  width: 20px;
  height: 20px;
}

.compare-table .ftr-none {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 1024px) {
  .fc-large { grid-template-columns: 1fr; gap: 32px; }
  .fc-medium, .fc-small { grid-column: span 12; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  section { padding: 100px 20px; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: center; }
}
