/* B360 Student — single-page site */

@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --sun: #FFCC00;
  --sun-soft: #FFF3BF;
  --violet: #6A0DBF;
  --violet-soft: #F2E9FC;
  --ink: #1C1236;
  --muted: #5E5675;
  --line: #E6E1EE;
  --paper: #FFFFFF;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(72px, 9vw, 128px);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--violet); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #000; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { color: var(--ink); background: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }

.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; min-height: 60px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-2px); color: #fff; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: .78rem; opacity: .8; line-height: 1.1; }
.store strong { display: block; font: 700 1.15rem/1.15 var(--display); letter-spacing: -0.01em; }
.store.light { background: #fff; color: var(--ink); }
.store.light:hover { color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--sun); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 8px 24px -16px rgba(28,18,54,.6); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.15rem var(--display); }
.brand img { width: 46px; height: 46px; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover, .nav a.active { background: rgba(28,18,54,.08); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font: 700 1rem var(--body); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--sun); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -20px rgba(28,18,54,.5); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid rgba(28,18,54,.15); font-size: 1.1rem; }
  .top .btn-ink { display: none; }
}

/* Hero */
.hero { background: var(--sun); padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.tagline { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--sun); font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-bottom: 24px; font-size: .95rem; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 24px; }
.hero h1 .line2 { display: block; color: var(--violet); }
.hero-sub { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 34ch; margin-bottom: 32px; }
.hero-note { margin: 22px 0 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hero-note svg { width: 22px; height: 22px; flex: none; }

/* The 360 ring */
.orbit { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; container-type: inline-size; }
.orbit::before { content: ""; position: absolute; inset: 8%; border: 2px dashed rgba(28,18,54,.35); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; inset: 22%; background: #fff; opacity: .45; border-radius: 50%; }
.ring { position: absolute; inset: 0; animation: spin 70s linear infinite; }
.orb { position: absolute; left: 50%; top: 50%; width: 15cqw; height: 15cqw; margin: -7.5cqw 0 0 -7.5cqw; transform: rotate(var(--a)) translateY(-42cqw) rotate(calc(-1 * var(--a))); }
.orb-in { width: 100%; height: 100%; border-radius: 50%; background: #fff; box-shadow: 0 10px 20px -10px rgba(28,18,54,.55); display: flex; align-items: center; justify-content: center; animation: spin 70s linear infinite reverse; }
.orb-in img { width: 64%; height: 64%; object-fit: contain; }
.orbit:hover .ring, .orbit:hover .orb-in { animation-play-state: paused; }
.phone { position: absolute; left: 50%; top: 50%; width: 29cqw; transform: translate(-50%, -50%) rotate(-4deg); z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring .orb-in { will-change: transform; }

/* Device frame */
.device { position: relative; border-radius: 13% / 6.2%; background: var(--ink); padding: 3.2%; box-shadow: 0 30px 50px -24px rgba(28,18,54,.7); }
.device .screen { border-radius: 10% / 4.8%; overflow: hidden; background: var(--violet-soft); aspect-ratio: 1206 / 2622; position: relative; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; }
.device .screen::before { content: attr(data-fallback); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12%; font: 800 1rem var(--display); color: var(--violet); }
.device .screen img { position: relative; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orbit { max-width: 420px; }
}
@media (max-width: 520px) { .store { flex: 1 1 100%; } }

/* Stats */
.stats { background: var(--ink); color: #fff; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 36px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font: 800 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--display); color: var(--sun); letter-spacing: -0.03em; margin-bottom: 8px; }
.stats span { color: #D8D2E8; }
@media (max-width: 760px) {
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 26px 16px 26px 0; border-left: 0; }
  .stats li:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* Sections */
.section { padding: var(--space) 0; }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.head p { font-size: 1.2rem; color: var(--muted); margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; max-width: none; }
.head-row > div { max-width: 680px; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 5px 5px 0 var(--ink); }
.svc img { width: 64px; height: 64px; }
.svc h3 { margin: 6px 0 0; }
.svc p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.deal { position: absolute; top: -12px; right: 14px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); font: 800 .78rem var(--display); padding: 5px 10px; border-radius: 999px; }
.svc.hot { background: var(--sun-soft); }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .services { grid-template-columns: 1fr 1fr; gap: 14px; } .svc { padding: 18px 16px 20px; } .svc img { width: 52px; height: 52px; } }
@media (max-width: 359px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 700px) and (min-width: 360px) { .svc h3 { font-size: 1rem; } .svc p { font-size: .9rem; } .deal { right: 8px; font-size: .7rem; } }
.more { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.more b { margin-right: 6px; font-family: var(--display); font-size: 1rem; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-weight: 600; }

/* Story */
.story { background: var(--violet); color: #fff; }
.story h2 { color: #fff; }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story p { color: #EADDF9; font-size: 1.1rem; }
.story .name { background: var(--sun); color: var(--ink); border-radius: 12px; padding: 4px 10px; font-weight: 700; white-space: nowrap; }
.needs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.needs li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.needs li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231C1236' stroke-width='2.4'/%3E%3C/svg%3E") center/15px no-repeat; }
.video-card { border-radius: var(--r); overflow: hidden; background: #000; border: 4px solid var(--sun); box-shadow: 10px 10px 0 var(--ink); }
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .needs { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--sun-soft); border-radius: var(--r); padding: 28px 24px; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--sun); font: 800 1.3rem var(--display); margin-bottom: 22px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { background: var(--ink); color: #fff; }
.gallery h2 { color: #fff; }
.gallery .head p { color: #CFC8E2; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.1); gap: 4px; }
.tabs button { border: 0; background: transparent; color: #fff; font: 700 1rem var(--body); padding: 12px 22px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--sun); color: var(--ink); }
.shots { list-style: none; margin: 0; padding: 12px 4px 28px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--sun) transparent; }
.shots li { flex: 0 0 230px; scroll-snap-align: start; }
.shots .device { box-shadow: 0 20px 40px -20px #000; background: #000; }
.shots.android li { flex-basis: auto; }
.shots.android img { height: 460px; width: auto; max-width: none; border-radius: 18px; background: #2A2148; }
.shots.android li.failed { display: none; }
.panel[hidden] { display: none; }
.scroll-hint { color: #CFC8E2; font-size: .95rem; margin: 6px 0 0; }
@media (max-width: 600px) { .shots li { flex-basis: 190px; } .shots.android img { height: 380px; } }

/* Videos */
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--ink) center/cover no-repeat; cursor: pointer; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%231C1236'/%3E%3C/svg%3E") 55% 50%/30px no-repeat; box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); transition: transform .15s; }
.yt:hover::after { transform: scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos h3 { margin: 14px 0 0; font-family: var(--body); font-size: 1.05rem; letter-spacing: 0; }
@media (max-width: 1000px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }

/* Testimonials */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quote { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote:nth-child(odd) { background: var(--sun-soft); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 .9rem var(--display); }
.quote strong { display: block; }
.quote small { display: block; color: var(--muted); line-height: 1.35; }
@media (max-width: 1050px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 700 1.1rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%231C1236' stroke-width='2.4'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* Download band */
.download { background: var(--sun); }
.dl { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.dl h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.8rem); }
.dl p { font-size: 1.2rem; max-width: 46ch; }
.dl-logo { width: min(100%, 300px); height: auto; margin: 0 auto; filter: drop-shadow(8px 8px 0 var(--ink)); }
@media (max-width: 800px) { .dl { grid-template-columns: 1fr; } .dl-logo { width: 150px; margin: 0; order: -1; } }

/* Contact + footer */
.contact { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0 0; }
.contact h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
.contact dt { font-weight: 700; color: var(--sun); }
.contact dd { margin: 0; color: #E5DFF3; }
.contact a { color: #fff; }
.map { border-radius: var(--r); overflow: hidden; border: 3px solid var(--sun); min-height: 300px; background: #2A2148; }
.map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 28px 0 36px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.14); color: #BFB7D4; font-size: .95rem; }
.foot p { margin: 0; }
.foot a { color: #fff; }
.foot a + a { margin-left: 18px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .contact dl { grid-template-columns: 1fr; gap: 2px; } .contact dd { margin-bottom: 14px; } }

/* Floating download (mobile) */
.float-dl { display: none; }
@media (max-width: 700px) {
  .float-dl { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: var(--ink); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); transform: translateY(140%); transition: transform .25s; }
  .float-dl.show { transform: none; }
  .float-dl a { flex: 1; text-align: center; padding: 12px 8px; border-radius: 12px; background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none; }
  .float-dl a + a { background: #fff; }
  body { padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .orb-in { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
}
