@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg-deep: #060a13;
  --bg-dark: #0a0f1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --border: #1e293b;
  --border-glow: #34d39930;
  --primary: #34d399;
  --primary-dim: #34d39920;
  --primary-mid: #34d39950;
  --accent: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #475569;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

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

/* ---- Grain overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(120deg); }
  66% { transform: translate(-20px, 10px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }
.fade-up-6 { animation-delay: 0.6s; }

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

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

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, var(--bg-deep) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #f59e0b10 0%, transparent 70%);
  bottom: 20%;
  right: 15%;
  animation-delay: -4s;
  animation-duration: 16s;
}

.hero-shapes {
  position: absolute;
  inset: 0;
}

.hero-shape {
  position: absolute;
  border: 1px solid var(--border);
  opacity: 0.3;
  animation: drift 20s linear infinite;
}

.hero-shape-1 {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 12%;
  border-radius: 12px;
  animation-duration: 25s;
}

.hero-shape-2 {
  width: 40px;
  height: 40px;
  top: 35%;
  right: 15%;
  border-radius: 50%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.hero-shape-3 {
  width: 80px;
  height: 80px;
  bottom: 25%;
  left: 20%;
  border-radius: 16px;
  transform: rotate(45deg);
  animation-duration: 22s;
  animation-delay: -10s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-glow 2s ease-in-out infinite;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 30px var(--primary-dim), 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--primary-mid), 0 8px 24px rgba(0,0,0,0.4);
}

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

.btn-outline:hover {
  border-color: var(--text-dim);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hero-platforms svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.hero-platforms svg:hover {
  opacity: 1;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Section headers ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.7;
}

/* ---- Features ---- */
.features {
  background: var(--bg-dark);
}

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

.features-header .section-desc {
  margin: 0 auto;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-mid), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.feature-icon-ssl {
  background: linear-gradient(135deg, #34d39915, #34d39930);
  color: var(--primary);
}

.feature-icon-php {
  background: linear-gradient(135deg, #818cf815, #818cf830);
  color: #818cf8;
}

.feature-icon-db {
  background: linear-gradient(135deg, #f59e0b15, #f59e0b30);
  color: var(--accent);
}

.feature-icon-plugin {
  background: linear-gradient(135deg, #f472b615, #f472b630);
  color: #f472b6;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ---- How It Works ---- */
.how-it-works-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works-header .section-desc {
  margin: 0 auto;
}

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

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 36px);
  right: calc(16.67% + 36px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary-mid), var(--border), var(--primary-mid));
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

.step-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 12px;
}

/* ---- Tech / Platforms ---- */
.tech {
  background: var(--bg-dark);
}

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

.tech-stack {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.tech-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.tech-icon:hover {
  border-color: var(--primary-mid);
  transform: translateY(-2px);
}

.tech-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.tech-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

.tech-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  align-self: flex-start;
  margin-top: 0;
}

.herd-note {
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ---- CTA ---- */
.cta {
  text-align: center;
  position: relative;
}

.cta-inner {
  padding: 72px 48px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta .section-title {
  margin-bottom: 16px;
}

.cta .section-desc {
  margin: 0 auto 36px;
  text-align: center;
}

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

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-left a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-center {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .tech-stack {
    gap: 24px;
  }

  .tech-divider {
    display: none;
  }

  .cta-inner {
    padding: 48px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

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