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

:root {
  --primary: #6a11cb;
  --secondary: #2575fc;
  --accent: #00f2fe;
  --bg: #f0f2f5;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text: #333;
  --text-light: #f8f9fa;
  --heading: #1a2a4d;
  --success: #38a169;
  --warning: #dd6b20;
  --error: #e53e3e;
  --radius: 10px;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 1rem;
}
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

/* ─── Header ────────────────────────────────────────────────────────────── */

header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: super;
  margin-left: 6px;
  -webkit-text-fill-color: white;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 32px;
}

nav ul li a {
  color: var(--heading);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding: 100px 0 120px;
  background: var(--gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(0, 242, 254, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 2%) rotate(1deg); }
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

/* ─── Clock showcase ────────────────────────────────────────────────────── */

.clock-showcase {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.clock {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 16px 28px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.clock-city {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
  opacity: 0.8;
}

.clock-time {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
}

/* ─── New badge ─────────────────────────────────────────────────────────── */

.new-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Features ──────────────────────────────────────────────────────────── */

.features {
  padding: 100px 0;
  background: #fff;
}

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

.feature-card {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.feature-card h3 { margin-bottom: 12px; font-size: 1.2rem; }

/* ─── Supported objects ─────────────────────────────────────────────────── */

.objects {
  padding: 80px 0;
  background: var(--bg);
}

.object-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.object-pill {
  background: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.object-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.object-pill .pill-icon { margin-right: 8px; }

/* ─── Pricing ───────────────────────────────────────────────────────────── */

.pricing {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

.pricing-card {
  background: white;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  margin: 0 auto;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: var(--transition);
}

.pricing-card:hover {
  box-shadow: 0 12px 40px rgba(106, 17, 203, 0.15);
  transform: translateY(-4px);
}

.price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.price-period {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.benefits {
  list-style: none;
  margin: 30px 0;
  text-align: left;
  display: inline-block;
}

.benefits li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  padding-left: 28px;
  position: relative;
}

.benefits li:last-child { border-bottom: none; }

.benefits li::before {
  content: "✓";
  color: var(--success);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1rem;
}

.pricing-card .btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 1.05rem;
}

/* ─── Setup guide ───────────────────────────────────────────────────────── */

.setup-guide {
  padding: 100px 0;
  background: var(--bg);
}

.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-right: 24px;
}

.step-content h3 { margin-bottom: 6px; font-size: 1.2rem; }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  padding: 100px 0;
  background: #fff;
}

.faq-item {
  background: var(--card-bg);
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--primary);
}

/* ─── Migration ─────────────────────────────────────────────────────────── */

.migrate-section {
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}

.migrate-card {
  background: white;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}

.migrate-card input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
  transition: var(--transition);
}

.migrate-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

footer {
  background: var(--heading);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  text-align: center;
}

footer p { margin-bottom: 0; }
footer a { color: var(--accent); }
footer a:hover { color: #fff; }

/* ─── Success page ──────────────────────────────────────────────────────── */

.success-message {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
}

.install-link {
  margin: 24px 0;
  padding: 16px 20px;
  background: #f5f8fa;
  border-radius: var(--radius);
  word-break: break-all;
  font-family: monospace;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-btn {
  background: var(--secondary);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ─── Plugin demo hero ──────────────────────────────────────────────────── */

.plugin-demo {
  position: relative;
  padding: 100px 0;
  background: var(--gradient);
  text-align: center;
  overflow: hidden;
}

.plugin-demo h1 {
  color: white;
  font-size: 3.2rem;
  margin-bottom: 50px;
  position: relative;
  z-index: 3;
}

.plugin-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.plugin-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.plugin-screenshot-wrapper {
  position: relative;
  display: inline-block;
}

.plugin-screenshot {
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  transition: transform 1s ease;
}

.plugin-overlay {
  position: absolute;
  top: -15px;
  left: -35px;
  border-radius: 8px;
  width: 105%;
  height: 105.25%;
  background: rgba(0, 0, 0, 0);
  transition: background 1s ease;
  pointer-events: none;
  z-index: 1;
}

.plugin-zoom {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: all 1s ease;
  z-index: 2;
}

.zoom-image {
  width: 400px;
}

.zoom-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 10px;
}

.plugin-demo.in-view .plugin-screenshot {
  transform: scale(1.05);
}

.plugin-demo.in-view .plugin-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.plugin-demo.in-view .plugin-zoom {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Mobile demo card (hidden on desktop) */
.mobile-demo { display: none; }

.mobile-demo {
  padding: 0 20px;
  text-align: center;
}

.mobile-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.plugin-demo.in-view .mobile-card {
  opacity: 1;
  transform: translateY(0);
}

.mobile-card-header {
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #33475b;
  border-bottom: 1px solid #eaf0f6;
  background: #f5f8fa;
}

.mobile-card-chevron {
  font-size: 8px;
  margin-right: 6px;
  color: #7c98b6;
}

.mobile-card-body { padding: 18px; }

.mobile-card-line {
  font-size: 14px;
  color: #33475b;
  margin-bottom: 8px;
}

.mobile-card-line strong { font-weight: 700; }

.mobile-card-tz {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #516f90;
}

.mobile-tz-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00bda5;
  display: inline-block;
}

.mobile-card-footer {
  padding: 10px 18px;
  font-size: 11px;
  color: #7c98b6;
  border-top: 1px solid #eaf0f6;
}

.mobile-card-footer strong { color: #33475b; }

.mobile-tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.plugin-demo.in-view .mobile-tagline {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.8rem; }
  .plugin-demo h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
  nav { flex-direction: column; padding: 10px 20px; }
  .logo { margin-bottom: 12px; }
  nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }

  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { font-size: 1.1rem; }

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

  .step { flex-direction: column; align-items: center; text-align: center; }
  .step-number { margin-right: 0; margin-bottom: 16px; }

  .pricing-card, .migrate-card { max-width: 90%; }

  .plugin-demo h1 { font-size: 2.2rem; }
  .plugin-demo { padding: 60px 0 40px; }

  .desktop-demo { display: none; }
  .mobile-demo { display: block; }
}

@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .clock-showcase { flex-direction: column; align-items: center; }
  .clock { width: 80%; max-width: 200px; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .plugin-demo h1 { font-size: 1.8rem; }
  .mobile-tagline { font-size: 1rem; }
}
