/* =========================================================
   NEXWEB STUDIO — Website Development Service
   style.css  (HTML5 + CSS3, mobile-first, responsive)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #060a24;
  --navy-800: #0a0e2a;
  --navy-700: #111638;
  --panel: #0e1330;
  --panel-2: #141a3d;
  --text: #f3f5ff;
  --muted: #aab3d6;
  --line: rgba(255, 255, 255, 0.10);

  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --magenta: #d6219b;
  --orange: #f59e0b;
  --teal: #14b8a6;
  --green: #22c55e;

  --grad-rainbow: linear-gradient(90deg, #f97316, #ec4899 45%, #8b5cf6 80%, #6366f1);
  --grad-brand: linear-gradient(90deg, #3b82f6, #ec4899, #f59e0b);
  --grad-table: linear-gradient(90deg, #f97316, #ec4899 40%, #7c3aed 90%);
  --grad-hero: radial-gradient(120% 100% at 80% 0%, #b01670 0%, #5b1d8a 35%, #1a1d52 65%, #0a0e2a 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(236, 72, 153, 0.35);
  --container: 1120px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 18px; }
.section { padding: 38px 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-family: var(--font-head);
  padding: 13px 26px; border-radius: 999px; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn--primary { background: var(--grad-rainbow); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn--card { width: 100%; margin-top: 16px; }
.btn--full { width: 100%; margin-top: 6px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-bottom: 30px; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--grad-hero);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,0.03) 60px 62px);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.hero__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; flex-wrap: wrap;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.brand__name { font-family: var(--font-head); font-weight: 900; letter-spacing: .5px; font-size: 1.35rem; }
.brand__dot { color: var(--pink); }
.brand__tag { display: block; font-size: .62rem; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
.brand--sm .brand__name { font-size: 1.1rem; }

/* Nav */
.nav { position: relative; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.nav__menu { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.nav__menu a { color: #e7eaff; font-size: .9rem; transition: color .2s; }
.nav__menu a:hover { color: var(--pink); }
.nav__cta { background: var(--grad-rainbow); padding: 9px 18px; border-radius: 999px; color: #fff !important; }

/* Hero grid */
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  padding-top: 26px; padding-bottom: 26px;
}
.hero__title { font-family: var(--font-head); font-weight: 900; line-height: .92; letter-spacing: -1px; }
.t-line { display: block; }
.t-white { color: #fff; font-size: clamp(2.6rem, 8vw, 5rem); }
.t-rainbow {
  font-size: clamp(3.4rem, 11vw, 6.6rem);
  background: var(--grad-rainbow);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 16px; font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 600; }
.hero__sub .accent { color: var(--orange); }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- CSS Device mockup ---------- */
.hero__devices { position: relative; min-height: 320px; display: grid; place-items: center; }
.laptop { width: min(100%, 460px); }
.laptop__screen {
  background: #0c1030; border: 8px solid #1c2140; border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow); overflow: hidden;
}
.laptop__base {
  height: 14px; background: linear-gradient(180deg, #2a2f55, #11142e);
  border-radius: 0 0 16px 16px; width: 112%; margin-left: -6%;
  box-shadow: 0 14px 24px rgba(0,0,0,.5);
}
.laptop__base::after {
  content: ""; display: block; width: 70px; height: 5px; margin: 4px auto 0;
  background: #060818; border-radius: 0 0 6px 6px;
}

/* mini-site inside screen */
.site { background: linear-gradient(160deg, #2a0f4d, #4a0f5e 50%, #160a3a); padding: 12px; font-size: 10px; }
.site__bar { display: flex; align-items: center; gap: 8px; }
.site__logo { font-weight: 800; font-size: 9px; }
.site__menu { display: flex; gap: 5px; margin-left: auto; }
.site__menu i { width: 14px; height: 3px; background: rgba(255,255,255,.5); border-radius: 2px; }
.site__btn { background: var(--grad-rainbow); padding: 3px 7px; border-radius: 20px; font-size: 7px; font-weight: 700; }
.site__hero { padding: 18px 4px 14px; }
.site__h { font-weight: 800; font-size: 13px; line-height: 1.25; }
.site__h span { color: var(--pink); }
.site__cta { display: inline-block; margin-top: 8px; background: var(--grad-rainbow); padding: 4px 10px; border-radius: 20px; font-size: 7px; font-weight: 700; }
.site__stats { display: flex; gap: 14px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 10px; padding-top: 8px; }
.site__stats span { display: flex; flex-direction: column; font-size: 7px; color: var(--muted); }
.site__stats b { font-size: 13px; color: #fff; }

/* Phone */
.phone {
  position: absolute; right: -6px; bottom: -8px; width: 116px; height: 232px;
  background: #0c1030; border: 6px solid #20254a; border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
}
.phone__notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 8px; background: #20254a; border-radius: 10px; z-index: 2; }
.phone__screen { background: linear-gradient(160deg, #2a0f4d, #160a3a); height: 100%; padding: 16px 9px 9px; font-size: 8px; }
.phone__logo { font-weight: 800; font-size: 7px; margin-bottom: 8px; }
.phone__h { font-weight: 800; font-size: 9px; line-height: 1.3; }
.phone__h span { color: var(--pink); }
.phone__cta { display: inline-block; margin-top: 7px; background: var(--grad-rainbow); padding: 3px 8px; border-radius: 16px; font-size: 6px; font-weight: 700; }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.phone__grid i { height: 22px; background: rgba(255,255,255,.08); border-radius: 6px; }

/* Features strip */
.features {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  background: rgba(255,255,255,0.96); color: var(--navy-800);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  margin-top: 18px;
}
.features li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .82rem; padding: 6px 8px; border-right: 1px solid #e8e8f0; }
.features li:last-child { border-right: 0; }
.features__ic { font-size: 1.4rem; }

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.ptable { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ptable__title {
  text-align: center; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.5rem); letter-spacing: .5px; color: #fff;
  background: var(--grad-table); padding: 16px;
}
.ptable__scroll { overflow-x: auto; }

.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: center; font-size: .88rem; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .4px; padding: 14px; }
.cmp__feat { text-align: left !important; background: var(--panel-2); color: #fff; }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 600; color: #dfe4ff; background: var(--panel-2); }
.cmp__starter { background: rgba(20, 184, 166, 0.18); }
.cmp__business { background: rgba(236, 72, 153, 0.2); position: relative; }
.cmp__premium { background: rgba(139, 92, 246, 0.18); }
.cmp tbody tr:nth-child(even) td, .cmp tbody tr:nth-child(even) th[scope="row"] { background-color: rgba(255,255,255,0.02); }

.tag-hot {
  display: inline-block; background: #fff; color: var(--pink);
  font-size: .6rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; vertical-align: middle;
}
.price { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; }
.price--starter { color: var(--teal); }
.price--business { color: var(--pink); }
.hl { color: var(--teal); font-weight: 600; }
.yes { color: var(--green); font-weight: 900; }
.no { color: var(--muted); font-weight: 700; }
.cmp__custom { color: #c9b6ff; font-weight: 600; line-height: 1.5; vertical-align: middle; }

/* =========================================================
   PLAN CARDS
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); }
.plan__head { padding: 22px 22px 18px; color: #fff; position: relative; }
.plan--starter .plan__head { background: linear-gradient(135deg, #0f766e, #134e4a); }
.plan--business .plan__head { background: linear-gradient(135deg, #db2777, #7c1d6b); }
.plan--premium .plan__head { background: linear-gradient(135deg, #6d28d9, #3730a3); }
.plan--featured { box-shadow: 0 0 0 2px var(--pink), var(--shadow-glow); }
.plan__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: #fff; color: var(--pink); font-size: .6rem; font-weight: 800;
  padding: 4px 10px; border-radius: 6px; letter-spacing: .5px;
}
.plan__ic { font-size: 2rem; display: inline-block; }
.plan__head h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; line-height: 1.05; margin-top: 8px; }
.plan__price { font-family: var(--font-head); font-weight: 900; font-size: 2rem; margin-top: 6px; }
.plan--starter .plan__price { color: #5eead4; }
.plan--business .plan__price { color: #ffd6ea; }
.plan__custom { color: #c4b5fd; font-weight: 600; margin-top: 8px; font-size: .95rem; }

.plan__body { padding: 18px 22px 24px; }
.plan__for { font-weight: 700; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.plan__dots { margin-bottom: 16px; }
.plan__dots li { position: relative; padding-left: 16px; font-size: .85rem; color: var(--text); margin: 3px 0; }
.plan__dots li::before { content: "•"; position: absolute; left: 2px; color: var(--pink); }
.plan__checks li { position: relative; padding-left: 24px; font-size: .9rem; margin: 7px 0; }
.plan__checks li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* =========================================================
   WHY + CONTACT
   ========================================================= */
.info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.why, .contact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.why__title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.why__title span { color: var(--orange); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why__grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.why__grid li span { font-size: 1.7rem; }

.contact__title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.contact__list li { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: .9rem; }
.contact__ic { font-size: 1.3rem; }
.contact__list a { color: #7dd3fc; word-break: break-all; }
.contact__list a:hover { text-decoration: underline; }
.copy { margin-left: auto; font-size: 1.1rem; color: var(--muted); padding: 4px 8px; border-radius: 8px; transition: .2s; }
.copy:hover { color: #fff; background: rgba(255,255,255,.08); }
.contact .btn { margin-top: 18px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); border-top: 1px solid var(--line); padding: 22px 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__mid { color: var(--muted); font-weight: 600; }
.footer__mid b { color: var(--pink); }
.footer__copy { color: var(--muted); font-size: .82rem; }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(2,4,18,0.75); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; width: min(480px, 100%); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; top: 12px; right: 14px; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.modal__x:hover { color: #fff; }
.modal h2 { font-family: var(--font-head); font-weight: 800; }
.modal__lead { color: var(--muted); font-size: .9rem; margin: 6px 0 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: #dfe4ff; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: #fff; border: 1px solid var(--line); font-family: inherit; font-size: .92rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); outline: none; }
.field input.invalid, .field textarea.invalid { border-color: #f87171; }
.error { color: #fca5a5; font-size: .76rem; min-height: 1em; display: block; margin-top: 4px; }
.form-success { color: var(--green); font-weight: 600; text-align: center; margin-top: 12px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #fff; color: #0a0e2a; font-weight: 700; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 300; font-size: .88rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__devices { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features li:nth-child(odd) { border-right: 1px solid #e8e8f0; }
  .features li:nth-child(even) { border-right: 0; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .info { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: calc(100% + 12px); right: 0; flex-direction: column;
    background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; gap: 14px; min-width: 200px; box-shadow: var(--shadow);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s; z-index: 50;
  }
  .nav__menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .features { grid-template-columns: 1fr; }
  .features li { border-right: 0 !important; border-bottom: 1px solid #e8e8f0; }
  .features li:last-child { border-bottom: 0; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__row { justify-content: center; text-align: center; }
  .phone { width: 96px; height: 190px; right: 0; }
}

@media (max-width: 380px) {
  .hero__actions .btn { width: 100%; }
}
