/* ions-myai.world — consumer mega-site (WEBCON-R01) */
:root {
  --bg: #04040c;
  --surface: #0e0f18;
  --border: rgba(138, 107, 255, 0.2);
  --text: #f4f4f8;
  --muted: rgba(244, 244, 248, 0.62);
  --accent: #8a6bff;
  --accent2: #00e5ff;
  --font: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --max: 1040px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 4, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.logo {
  font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.88rem; max-width: 52rem; justify-content: flex-end; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 32px 0 40px;
  text-align: center;
}
.hero-banner {
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 28px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6b4fd6);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Sections */
section { padding: 56px 0; }
section:nth-child(even) { background: linear-gradient(180deg, transparent, rgba(138, 107, 255, 0.04)); }
h2 {
  font-size: 1.65rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text); text-align: center;
}
.section-lead { color: var(--muted); margin-bottom: 28px; max-width: 40rem; text-align: center; margin-left: auto; margin-right: auto; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--accent2); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 0.92rem; color: rgba(244, 244, 248, 0.85); }

.download-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .download-grid { grid-template-columns: 1fr 1fr; } }

footer {
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Inner pages (WEBCON-R02–R04) */
.logo a { text-decoration: none; -webkit-text-fill-color: transparent; }
.page-main { padding: 32px 0 64px; }
.page-hero { margin-bottom: 32px; }
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent2); }
.prose { max-width: 40rem; }
.prose p { margin-bottom: 1rem; color: rgba(244, 244, 248, 0.9); }
.media-row {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}
@media (min-width: 800px) { .media-row { grid-template-columns: 1.2fr 1fr; } }
.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: linear-gradient(145deg, rgba(138, 107, 255, 0.12), rgba(0, 229, 255, 0.08));
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9rem; text-align: center; padding: 16px;
}
.image-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.88rem;
}
.hub-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .hub-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.hub-grid a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}
.hub-grid a.card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}
.price-tag { font-size: 0.9rem; color: var(--accent2); font-weight: 600; margin-top: 8px; }

/* Subscribe table */
.subscribe-wrap { max-width: 920px; margin: 0 auto; padding: 32px 24px 72px; }
.subscribe-wrap table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.subscribe-wrap th, .subscribe-wrap td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.subscribe-wrap th { color: var(--accent2); font-weight: 600; }
.subscribe-wrap tr:hover td { background: rgba(138, 107, 255, 0.06); }
.subscribe-wrap code { font-size: 0.75rem; color: rgba(244, 244, 248, 0.72); word-break: break-all; }
.btn-go {
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 12px;
  border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--accent), #6b4fd6); color: #fff;
}
.btn-go:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-go.in-cart { background: linear-gradient(135deg, #00c853, #009624); }
.err-msg { color: #ff9a9a; font-size: 0.9rem; margin-top: 12px; }

/* ========== Phase 1 — Navigation, Zone Grid, Zone Pages ========== */

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding-top: 12px; gap: 8px; }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
}

/* Zones dropdown */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: 0.88rem; cursor: pointer; padding: 0;
}
.nav-drop-btn:hover { color: var(--text); }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 0;
  min-width: 180px; z-index: 30;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-drop-menu.show { display: block; }
.nav-drop-menu a {
  display: block; padding: 8px 20px; color: var(--muted);
  font-size: 0.88rem; white-space: nowrap;
}
.nav-drop-menu a:hover { color: var(--text); background: rgba(138,107,255,0.08); text-decoration: none; }

@media (max-width: 768px) {
  .nav-drop-menu {
    position: static; transform: none; margin-top: 4px;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px;
  }
}

/* Zone grid (home page) */
.zone-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .zone-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .zone-grid { grid-template-columns: repeat(5, 1fr); } }

.zone-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.zone-tile:hover {
  border-color: var(--tile-accent, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-decoration: none;
}
.zone-tile .zt-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 12px;
}
.zone-tile .zt-icon img { width: 28px; height: 28px; object-fit: contain; }
.zone-tile h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.zone-tile p { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* Channels strip */
.channels-strip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.channel-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.channel-pill:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }

/* Steps row */
.steps-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; padding: 24px 16px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* Pricing row (3 tiers) */
.pricing-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pricing-row { grid-template-columns: repeat(3, 1fr); } }
.tier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
}
.tier-card.featured { border-color: var(--accent); box-shadow: 0 0 24px rgba(138,107,255,0.15); }
.tier-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tier-card .price {
  font-size: 1.8rem; font-weight: 800; margin: 8px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tier-card .price small { font-size: 0.6em; font-weight: 500; }
.tier-card ul { list-style: none; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.tier-card ul li { padding: 4px 0; }
.tier-card .badge {
  display: inline-block; padding: 4px 10px;
  background: rgba(138,107,255,0.15); border-radius: 6px;
  font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-top: 8px;
}

/* Promise banner */
.promise-banner {
  background: linear-gradient(135deg, rgba(138,107,255,0.15), rgba(0,229,255,0.1));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.promise-banner h3 { font-size: 1.2rem; margin-bottom: 8px; }
.promise-banner p { color: var(--muted); margin-bottom: 16px; }

/* Tools strip */
.tools-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tool-chip {
  padding: 8px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.85rem; color: var(--accent2); font-weight: 500;
}

/* Arsenal chip grid */
.arsenal-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; max-width: 48rem; margin: 0 auto;
}
.arsenal-grid .tool-chip { transition: border-color 0.2s; }
.arsenal-grid .tool-chip:hover { border-color: var(--accent); }

/* Zone landing hero */
.zone-hero { padding: 56px 0 40px; text-align: center; }
.zone-badge {
  display: inline-block; font-size: 0.82rem; color: var(--accent);
  background: rgba(138,107,255,0.12); padding: 6px 14px;
  border-radius: 100px; margin-bottom: 16px; font-weight: 500;
}
.zone-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zone-hero .tagline { font-size: 1.1rem; color: var(--muted); max-width: 32rem; margin: 0 auto 24px; }

/* Zone features */
.zone-features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .zone-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .zone-features.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.zf-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px;
}
.zf-card h3 { font-size: 1rem; color: var(--accent2); margin-bottom: 6px; }
.zf-card p { font-size: 0.9rem; color: rgba(244,244,248,0.85); }

/* Zone user class grid */
.class-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .class-grid { grid-template-columns: repeat(4, 1fr); } }
.class-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-align: center;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}
.class-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.class-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
.class-card p { font-size: 0.8rem; color: var(--muted); }

/* Tools page grid */
.tools-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
}
.tool-card h3 { font-size: 1.05rem; color: var(--accent2); margin-bottom: 8px; }
.tool-card p { font-size: 0.9rem; color: rgba(244,244,248,0.85); }

/* Footer grid */
footer { padding: 40px 24px 56px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; text-align: left; padding-bottom: 24px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 { font-size: 0.85rem; color: var(--accent2); margin-bottom: 12px; font-weight: 600; }
.footer-grid a { display: block; font-size: 0.82rem; color: var(--muted); padding: 3px 0; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }

/* Subscribe page — tiers above table */
.subscribe-tiers { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 700px) { .subscribe-tiers { grid-template-columns: repeat(3, 1fr); } }
