/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0A1628;
  --bg-card:   #111D35;
  --bg-card2:  #0F1A2E;
  --accent:    #5CFF85;
  --text:      #F0F4F8;
  --muted:     #8A9BB0;
  --border:    #1E2F4A;
  --radius:    12px;
  --font:      'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: var(--font);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ SECTION LABELS ============ */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 12px;
  max-width: 560px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-accent {
  background: linear-gradient(90deg, #5CFF85, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 7px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ============ HERO ============ */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated glow orbs in the background */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #5CFF85, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  bottom: -100px;
  right: 10%;
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes drift {
  0%   { transform: translateX(-50%) translateY(0px) scale(1); }
  100% { transform: translateX(-50%) translateY(30px) scale(1.08); }
}

/* Subtle dot grid overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  position: relative;
}

/* Gradient text on the accent line */
.accent {
  background: linear-gradient(90deg, #5CFF85, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rotating word in headline */
.rotating-word {
  display: inline-block;
  background: linear-gradient(90deg, #5CFF85, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  min-width: 200px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

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

/* Glowing primary button */
.btn-primary {
  box-shadow: 0 0 24px rgba(92, 255, 133, 0.25);
}

/* ============ SERVICES ============ */
.services {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.services h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 56px;
}

.cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  cursor: grab;
}

.cards:active {
  cursor: grabbing;
}

/* Hide scrollbar but keep functionality */
.cards::-webkit-scrollbar {
  height: 4px;
}

.cards::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}

.cards::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  flex: 0 0 280px;
}

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

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ PRICING ============ */
.pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.pricing h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg-card2);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: -8px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan-features .feature-highlight {
  color: var(--text);
  font-weight: 600;
  background: rgba(92, 255, 133, 0.08);
  border: 1px solid rgba(92, 255, 133, 0.2);
  border-radius: 6px;
  padding: 6px 10px 6px 10px;
  padding-left: 10px;
  margin-top: 4px;
}

.plan-features .feature-highlight::before {
  display: none;
}

/* ============ PLAN EXTRAS ============ */
.plan-hosting {
  background: rgba(92, 255, 133, 0.08);
  border: 1px solid rgba(92, 255, 133, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--accent);
}

.plan-maintenance {
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maintenance-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.maintenance-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.maintenance-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.maintenance-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ PORTFOLIO ============ */
.portfolio {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.portfolio h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.portfolio-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-inner {
  text-align: center;
  color: var(--muted);
}

.placeholder-inner p:first-child {
  font-size: 32px;
  margin-bottom: 10px;
}

.placeholder-inner p:last-child {
  font-size: 14px;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1400&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  text-align: center;
}

/* iOS Safari doesn't support background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .cta-banner {
    background-attachment: scroll;
  }
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.75) 100%);
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 640px;
}

.cta-banner p {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

.cta-banner .btn-primary {
  font-size: 17px;
  padding: 16px 36px;
  margin-top: 8px;
}

/* ============ CONTACT ============ */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  font-size: 22px;
  margin-top: 2px;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

a.contact-info-value:hover {
  color: var(--accent);
}

.contact-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer .logo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}

.footer-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-copy {
  color: var(--border);
  font-size: 13px;
}

/* ============ HERO STATS ============ */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  max-width: 160px;
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ============ WHY ============ */
.why {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.why h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 56px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.why-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.why-card-body {
  padding: 24px;
}

.why-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ ABOUT ============ */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  width: 100%;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.about-img-placeholder p:first-child {
  font-size: 40px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-tagline {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--text) !important;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

/* ============ HAMBURGER ============ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

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

.mobile-link-cta {
  margin-top: 16px;
  display: inline-block;
  background: var(--accent);
  color: var(--bg) !important;
  padding: 16px 28px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
}

/* ============ HOW IT WORKS ============ */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.how h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.steps {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 40px 1fr;
  gap: 0 24px;
  align-items: start;
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
  text-align: right;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-connector::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 12px rgba(92,255,133,0.4);
}

.step-connector::after {
  content: '';
  width: 2px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  margin-top: 6px;
}

.step-connector.last::after {
  display: none;
}

.step-body {
  padding-bottom: 48px;
}

.step-body h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  margin-top: 0;
}

.step-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}

/* ============ FAQ ============ */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.faq h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ============ SCROLL FADE-IN ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============ ROTATING WORD ANIMATION ============ */
@keyframes wordSwap {
  0%, 20%   { opacity: 1; transform: translateY(0); }
  25%, 95%  { opacity: 0; transform: translateY(-16px); }
  100%      { opacity: 0; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-img-placeholder {
    aspect-ratio: 4/3;
    max-width: 320px;
    margin: 0 auto;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 0 60px;
  }
}
