/* ItechWarriors Apps - shared styles. No external fonts or CDNs. */
:root {
  --sky: #dff4ff;
  --pink: #ffe3ec;
  --yellow: #fff3c4;
  --mint: #d9f7e6;
  --lavender: #e8e1ff;
  --peach: #ffe5d0;
  --primary: #6c5ce7;
  --primary-dark: #5143c4;
  --accent: #ff7a9a;
  --sun: #ffc93c;
  --green: #2fbf71;
  --text: #3b3355;
  --soft: #7c7498;
  --white: #fff;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(108, 92, 231, 0.16);
  --font: "Nunito", "Baloo 2", "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--sky);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 14px; border-radius: 12px; z-index: 50; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(223, 244, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; font-size: 1.2rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary); color: var(--white); font-size: 0.85rem; letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 800; padding: 10px 16px; border-radius: 999px;
  transition: background 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { background: var(--white); }
.menu-btn { display: none; background: var(--white); border: 0; border-radius: 12px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1.05rem; font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35); }
.btn-light { background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.btn-play { background: #1f1b2e; color: var(--white); }
.btn-play svg { width: 22px; height: 22px; }
.btn-play small { display: block; font-size: 0.7rem; font-weight: 700; opacity: 0.8; line-height: 1; }
.btn-play span { line-height: 1.15; text-align: left; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--white); color: var(--primary); font-weight: 900; font-size: 0.85rem;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow); letter-spacing: 0.3px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.08; margin: 18px 0 16px; font-weight: 900; }
.hero h1 .hl { color: var(--primary); }
.hero h1 .hl2 { color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: var(--soft); max-width: 34ch; margin: 0 0 28px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), var(--lavender));
  filter: blur(2px); z-index: 0;
}
.hero-art .phone { position: relative; z-index: 1; width: min(300px, 70vw); }
.float {
  position: absolute; z-index: 2; font-weight: 900; font-size: 2rem; width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}
.float.f1 { top: 6%; left: 2%; color: var(--accent); }
.float.f2 { top: 18%; right: 0; color: var(--primary); animation-delay: -1s; }
.float.f3 { bottom: 10%; left: 6%; color: var(--green); animation-delay: -2s; }
.float.f4 { bottom: 4%; right: 8%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* Phone frame */
.phone {
  border-radius: 38px; padding: 10px; background: #1f1b2e; box-shadow: 0 24px 60px rgba(59, 51, 85, 0.35);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 10px; font-weight: 900; line-height: 1.15; }
.section-head p { color: var(--soft); font-weight: 700; font-size: 1.1rem; margin: 0; }
.bg-white { background: var(--white); }
.bg-yellow { background: var(--yellow); }
.bg-lavender { background: var(--lavender); }

/* App cards (hub) */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.app-card {
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(108, 92, 231, 0.24); }
.app-card .top { display: flex; gap: 16px; align-items: center; }
.app-card .icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.app-card h3 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.app-card .tag { font-size: 0.85rem; font-weight: 800; color: var(--soft); }
.app-card p { margin: 0; color: var(--soft); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--sky); color: var(--text); font-weight: 800; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; }
.chip.pink { background: var(--pink); }
.chip.mint { background: var(--mint); }
.chip.yellow { background: var(--yellow); }
.app-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.app-card .actions .btn { padding: 10px 18px; font-size: 0.95rem; }
.app-card.soon { border: 3px dashed rgba(108, 92, 231, 0.25); box-shadow: none; background: transparent; justify-content: center; align-items: center; text-align: center; min-height: 260px; }
.app-card.soon:hover { transform: none; }
.app-card.soon .big { font-size: 3rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 0.25s;
}
.feature:hover { transform: translateY(-4px) rotate(-0.5deg); }
.feature .emoji { font-size: 2.6rem; }
.feature h3 { margin: 10px 0 6px; font-size: 1.35rem; font-weight: 900; }
.feature p { margin: 0; color: var(--text); opacity: 0.8; font-weight: 600; }
.feature ul { margin: 12px 0 0; padding-left: 20px; font-weight: 700; }

/* Try it demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.letter-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.letter-pad button {
  aspect-ratio: 1; border: 0; border-radius: 22px; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; cursor: pointer;
  font-family: inherit; box-shadow: var(--shadow); transition: transform 0.15s;
}
.letter-pad button:hover { transform: translateY(-3px); }
.letter-pad button:active { transform: scale(0.92); }
.letter-pad button[aria-pressed="true"] { outline: 4px solid var(--primary); }
.demo-card {
  background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.demo-card .big { font-size: 5.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.demo-card .big small { font-size: 3.6rem; color: var(--accent); margin-left: 10px; }
.demo-card .pic { font-size: 4.5rem; line-height: 1.2; }
.demo-card .word { font-size: 2rem; font-weight: 900; }
.demo-card .hint { color: var(--soft); font-weight: 700; }
.pop { animation: pop 0.45s ease; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* Gallery */
.gallery { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.gallery button { border: 0; background: none; padding: 0; cursor: zoom-in; transition: transform 0.25s; }
.gallery button:hover { transform: translateY(-8px) rotate(-1deg); }
.gallery .phone { width: 240px; }
.gallery figcaption { text-align: center; font-weight: 800; margin-top: 12px; }
.lightbox {
  position: fixed; inset: 0; background: rgba(31, 27, 46, 0.85); display: none; place-items: center; z-index: 60; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 28px; }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safe-item { background: var(--white); border-radius: 22px; padding: 22px; text-align: center; box-shadow: var(--shadow); }
.safe-item .emoji { font-size: 2.2rem; }
.safe-item strong { display: block; margin-top: 8px; font-size: 1.05rem; }
.safe-item span { color: var(--soft); font-weight: 600; font-size: 0.92rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); }
.faq summary { font-weight: 900; cursor: pointer; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--soft); font-weight: 600; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), #8f7bff); color: var(--white); border-radius: 36px;
  padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.cta img { width: 110px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.cta h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { margin: 0; opacity: 0.9; font-weight: 700; }

/* Footer */
.site-footer { background: #1f1b2e; color: #d8d3e6; padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--white); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 800; }
.site-footer small { display: block; margin-top: 28px; opacity: 0.7; }

/* Reveal on scroll */
/* Content is visible by default; script.js adds .js-reveal only to items below the fold. */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal.in { opacity: 1; transform: none; }

/* Policy page */
.policy { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: 32px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.policy-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.policy-head img { width: 72px; border-radius: 20px; }
.policy h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; }
.policy .meta { color: var(--soft); font-weight: 700; margin: 0; }
.policy h2 { font-size: 1.25rem; margin: 32px 0 6px; display: flex; gap: 10px; align-items: center; }
.policy p, .policy li { font-size: 1.04rem; }
.summary-box { background: var(--mint); border-radius: 22px; padding: 18px 22px; margin: 24px 0 8px; font-weight: 700; }
.summary-box ul { margin: 8px 0 0; padding-left: 20px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { text-decoration: none; background: var(--sky); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .demo { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .safety { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 24px; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--white);
    padding: 12px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero-art .blob { width: 300px; height: 300px; }
  .float { width: 52px; height: 52px; font-size: 1.6rem; }
  section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal { opacity: 1; transform: none; }
}
