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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;
  --accent: #6ee7b7;
  --accent-dim: rgba(110, 231, 183, 0.12);
  --accent-glow: rgba(110, 231, 183, 0.15);
  --purple: #a78bfa;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(110, 231, 183, 0.08),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 50%,
      rgba(167, 139, 250, 0.06),
      transparent
    ),
    radial-gradient(
      ellipse 50% 60% at 20% 80%,
      rgba(110, 231, 183, 0.04),
      transparent
    );
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  text-align: center;
  overflow: hidden;
  padding: 80px 0 40px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(110, 231, 183, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(80px);
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  top: 100px;
  right: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(100px);
  animation: glowPulse 8s ease-in-out 2s infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Site Title Typography */
.site-title {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
}

.title-this {
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: -0.02em;
}

.title-ip {
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--purple) 50%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(110, 231, 183, 0.2));
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.hero-headline {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

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

.hero-sub {
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
}

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

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: #86efac;
  box-shadow: 0 0 32px rgba(110, 231, 183, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

/* Preview */
.preview {
  padding: 0 0 100px;
}

.preview-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.preview-window {
  flex: 1;
  max-width: 560px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 15, 22, 0.8);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.preview-dots span:first-child {
  background: rgba(248, 113, 113, 0.4);
}

.preview-dots span:nth-child(2) {
  background: rgba(250, 204, 21, 0.4);
}

.preview-dots span:last-child {
  background: rgba(110, 231, 183, 0.4);
}

.preview-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.preview-lock {
  font-size: 10px;
}

.preview-body {
  position: relative;
  padding: 32px 24px 48px;
}

.preview-placeholder {
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

.preview-placeholder.short {
  width: 75%;
}

.preview-placeholder.shorter {
  width: 50%;
}

.mock-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeUp 0.6s ease 0.5s both;
}

.mock-icon {
  color: var(--accent);
  font-size: 10px;
}

.mock-ip {
  letter-spacing: 0.3px;
}

.mock-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--accent-dim);
  color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup Mock */
.popup-mock {
  width: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #0f0f14;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: fadeUp 0.6s ease 0.8s both;
  font-size: 12px;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.popup-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-logo {
  color: var(--accent);
  font-size: 14px;
}

.popup-title {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.3px;
}

.popup-toggle {
  display: flex;
  align-items: center;
}

.popup-toggle-track {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.2s;
}

.popup-toggle-track.active {
  background: rgba(110, 231, 183, 0.2);
}

.popup-toggle-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #71717a;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.2s;
}

.popup-toggle-track.active .popup-toggle-thumb {
  left: 14px;
  background: var(--accent);
}

.popup-ip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.popup-ip-value {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #fafafa;
}

.popup-ip-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.popup-hostname {
  font-size: 10px;
  color: var(--text-muted);
}

.popup-actions {
  display: flex;
  gap: 6px;
}

.popup-action-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 11px;
  cursor: default;
}

/* Features */
.features {
  padding: 100px 0;
}

.features h2,
.how-it-works h2,
.browsers h2,
.cta h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(110, 231, 183, 0.04),
    rgba(167, 139, 250, 0.04)
  );
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* How it works */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 220px;
  padding: 0 16px;
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

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

.step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
  flex-shrink: 0;
}

/* Browsers */
.browsers {
  padding: 80px 0;
}

.browser-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.browser-card {
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  width: 150px;
}

.browser-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.browser-logo {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}

.browser-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.browser-status {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-block;
}

.browser-status.success {
  background: rgba(110, 231, 183, 0.12);
  color: #6ee7b7;
}

.browser-status.warning {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.browser-status.error {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.browser-card.partial {
  opacity: 0.7;
}

.browser-card.unsupported {
  opacity: 0.4;
}

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.5);
}

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

.footer-brand-col {
  max-width: 280px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo {
  font-size: 20px;
  color: var(--accent);
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-col h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-author {
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-author:hover {
  opacity: 0.8;
}

.footer-socials a {
  color: var(--text-dim);
  transition: color 0.2s;
  display: inline-flex;
}

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

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

  .preview-layout {
    flex-direction: column;
    align-items: center;
  }

  .popup-mock {
    width: 240px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
    padding: 60px 0 40px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-line {
    width: 1px;
    height: 32px;
    margin: 0;
  }

  .browser-grid {
    gap: 12px;
  }

  .browser-card {
    width: calc(50% - 8px);
    min-width: 130px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
