@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #050505;
  --bg-gradient: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #050505 60%);
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --accent-blue: #00d2ff;
  --accent-purple: #3a7bd5;
  --accent-cyan: #00ffff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --card-glow: 0 0 20px rgba(0, 210, 255, 0.1);
  --btn-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #a0a0ab);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 3rem;
  text-align: center;
}

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

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

/* Layout */
.container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Navbar */
nav {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-cyan);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.signup-free-ribbon {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.signup-free-ribbon::after {
  content: attr(data-free-label);
  position: absolute;
  top: calc(100% + 2px);
  right: 4px;
  transform: rotate(-16deg);
  transform-origin: center;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: #dffbff;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(128, 247, 255, 0.55);
  background: rgba(2, 12, 24, 0.92);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.35);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.2);
}

.btn-pro {
  background: linear-gradient(135deg, #ff007a 0%, #7928ca 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}
.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 122, 0.4);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 0 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.25rem;
}

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

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--btn-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-glow);
  border-color: rgba(0, 210, 255, 0.3);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Visual Proof (Mockup placeholder) */
.visual-proof {
  text-align: center;
}

.mockup-container {
  margin-top: 60px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10, 10, 15, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0,210,255,0.05);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
}

.mockup-svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

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

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  z-index: 10;
}

.info-wrapper {
  display: inline-flex;
  align-items: center;
}

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: linear-gradient(135deg, #2b2e4a 0%, #151522 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: normal;
  text-align: left;
  width: max-content;
  max-width: 280px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 9999;
  pointer-events: none;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.pricing-card.pro {
  border-color: rgba(255, 0, 122, 0.4);
  background: linear-gradient(180deg, rgba(255,0,122,0.05) 0%, rgba(5,5,5,0) 100%);
  position: relative;
}

.pricing-card.pro-plus {
  border-color: rgba(0, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(0,210,255,0.05) 0%, rgba(5,5,5,0) 100%);
}

.pricing-card.ultra {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(180deg, rgba(255,215,0,0.05) 0%, rgba(5,5,5,0) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff007a 0%, #7928ca 100%);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plus-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-gradient);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.tier-desc {
  font-size: 0.875rem;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
}

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

.feature-list li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 800;
}

.pricing-card.pro .feature-list li::before {
  color: #ff007a;
}

.pricing-card.pro-plus .feature-list li::before {
  color: var(--accent-cyan);
}

.pricing-card.ultra .feature-list li::before {
  color: #FFD700;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

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

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

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

/* Responsive */
@media (max-width: 992px) {
  .features-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .signup-free-ribbon::after {
    top: calc(100% + 1px);
    right: 2px;
    font-size: 0.42rem;
    letter-spacing: 0.04em;
    padding: 1px 5px;
  }
}

/* Beta Ribbon */
.beta-ribbon {
  position: fixed;
  top: 6px;
  left: -40px;
  width: 130px;
  background: transparent;
  color: #00d2ff;
  text-align: center;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 0;
  transform: rotate(-45deg);
  z-index: 10000;
  pointer-events: none;
}

/* Contact Widget */
.contact-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--btn-gradient);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-widget-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

.contact-widget-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-popover {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.05);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1),
              height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1),
              opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              visibility 0.3s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.contact-popover.expanded {
  width: 700px;
  max-width: calc(100vw - 48px);
  height: 80vh;
  max-height: 800px;
}

.contact-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.contact-popover-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}

.contact-popover-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.autosave-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.autosave-status.visible {
  opacity: 1;
}

.contact-popover-expand {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.contact-popover-expand svg {
  width: 18px;
  height: 18px;
}

.contact-popover-expand:hover {
  color: #fff;
}

.contact-popover-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  padding: 0;
}

.contact-popover-close:hover {
  color: #fff;
}

#contact-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.contact-popover.expanded .contact-form-group:nth-child(2) {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.contact-popover.expanded .contact-form-textarea {
  flex-grow: 1;
}

.contact-form-input,
.contact-form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form-input:focus,
.contact-form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form-textarea {
  resize: none;
  min-height: 100px;
}

.contact-form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
}

.contact-form-message {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.contact-form-message.success {
  color: var(--accent-cyan);
}

.contact-form-message.error {
  color: #ff3366;
}
