/* megafomarket.com — landing styles */

:root {
  --bg-0: #0c0a10;
  --bg-1: #14111c;
  --bg-2: #1c1728;
  --line: #2a2338;
  --text: #f2ece4;
  --muted: #9a90a5;
  --dim: #6b6376;
  --red: #d62839;
  --red-hi: #ff485f;
  --red-lo: #8c1828;
  --amber: #ffb45a;
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(214, 40, 57, 0.35);
  --font-sans: 'Inter', 'Helvetica Neue', 'Segoe UI', -apple-system, Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* subtle background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(214, 40, 57, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(214, 40, 57, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  z-index: -1;
}

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

a { color: var(--red-hi); text-decoration: none; }
a:hover { color: var(--text); }

img { max-width: 100%; height: auto; display: block; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(12, 10, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-lo));
  color: var(--text);
  border-radius: 9px;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(214, 40, 57, 0.4);
}
.logo-accent { color: var(--red-hi); }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.main-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: var(--red);
  color: var(--text);
  box-shadow: 0 6px 20px -6px rgba(214, 40, 57, 0.7);
}
.btn-primary:hover {
  background: var(--red-hi);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red-hi);
}

/* hero */
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-hi);
  border: 1px solid rgba(214, 40, 57, 0.35);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.accent {
  color: var(--red-hi);
  position: relative;
  white-space: nowrap;
}
.accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: rgba(214, 40, 57, 0.2);
  z-index: -1;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-facts {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--red);
}
.hero-facts b {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.hero-facts span {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; }

/* section head */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-hi);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* features */
.features { padding: 80px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-lo);
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: rgba(214, 40, 57, 0.12);
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* security */
.security { padding: 80px 0; background: linear-gradient(180deg, transparent, rgba(214, 40, 57, 0.03) 50%, transparent); }
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.security-text h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; margin: 12px 0 18px; letter-spacing: -0.01em; line-height: 1.2; }
.security-text p { color: var(--muted); margin-bottom: 16px; }
.check-list {
  list-style: none;
  margin-top: 20px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: rgba(214, 40, 57, 0.15);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--red-hi);
  border-bottom: 2px solid var(--red-hi);
  transform: rotate(-45deg);
}
.security-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* devices */
.devices { padding: 40px 0 80px; }
.devices-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.devices-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.devices-text h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; margin: 12px 0 18px; line-height: 1.2; letter-spacing: -0.01em; }
.devices-text p { color: var(--muted); margin-bottom: 14px; }

/* plans */
.plans { padding: 80px 0; }
.plans-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 40px;
  max-width: 900px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
}
.plan-featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(214, 40, 57, 0.06), var(--bg-1));
  transform: scale(1.02);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--red);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.plan-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 34px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-card ul { list-style: none; }
.plan-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}
.plan-card li:last-child { border-bottom: none; }
.plans-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--dim);
  text-align: center;
  font-style: italic;
}

/* how to */
.howto { padding: 80px 0; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--text);
  font-weight: 800;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(214, 40, 57, 0.4);
}
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; margin-top: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* faq */
.faq { padding: 80px 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.faq details {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--red-lo); }
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red-hi);
  font-weight: 400;
  font-size: 22px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
}

/* cta */
.cta { padding: 80px 0; }
.cta-inner {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(214, 40, 57, 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  line-height: 1.2;
}
.cta p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  background: var(--bg-1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.footer-sub { font-size: 13px; color: var(--muted); max-width: 380px; }
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--red-hi); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

/* responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { padding: 50px 0 40px; }
  .hero-grid, .security-grid, .devices-grid { grid-template-columns: 1fr; gap: 40px; }
  .devices-grid .devices-visual { order: 2; }
  .plan-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .features, .security, .plans, .howto, .faq, .cta { padding: 50px 0; }
  .cta-inner { padding: 40px 22px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-facts { gap: 18px; }
  .hero-facts b { font-size: 18px; }
  .header-inner .btn { display: none; }
}
