/* TidySweep Software website: dark, glassy, violet and cyan. */
:root {
  --bg: #080b18; --bg2: #0d1124; --card: rgba(255,255,255,0.045); --line: rgba(255,255,255,0.09);
  --text: #eef0fb; --mute: #a3a9c6; --violet: #7c5cff; --cyan: #22d3ee; --pink: #f472b6;
  --grad: linear-gradient(120deg, #7c5cff 0%, #4f7bff 50%, #22d3ee 100%);
  --radius: 18px; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(8,11,24,0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo { width: 34px; height: 34px; filter: drop-shadow(0 6px 18px rgba(124,92,255,0.45)); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; font-size: 15px; color: #fff; box-shadow: 0 6px 24px rgba(124,92,255,0.45); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--mute); }
.nav-links a { --c: #a78bfa; position: relative; padding: 6px 12px; margin: 0 -6px; border-radius: 10px; transition: color .18s, background .18s, box-shadow .18s; }
.nav-links a:hover { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.nav-links a.on { color: var(--text); }
.nav-links a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--c); }
/* App pages: overview, how it works, a closer look, questions */
.what { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.what h2 { margin: 10px 0 18px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.what .prose { margin: 0; max-width: none; }
.facts { display: grid; gap: 12px; }
.facts div { padding: 16px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.facts span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.facts b { font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; color: #fff; background: var(--grad); }
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--mute); font-size: 15px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.detail:first-of-type { margin-top: 0; }
.detail.flip .d-img { order: 2; }
.detail.solo { grid-template-columns: 1fr; max-width: 820px; margin-left: auto; margin-right: auto; padding: 30px 34px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.detail h3 { margin: 0 0 14px; font-size: 26px; }
.detail p { margin: 0 0 12px; color: #c9cde6; font-size: 17px; }
.d-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.d-img img { width: 100%; display: block; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--mute); font-size: 15px; }
@media (max-width: 860px) { .what, .detail { grid-template-columns: 1fr; gap: 26px; } .detail.flip .d-img { order: 0; } }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.1); }
.btn.pri { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(79,123,255,0.35); }
.btn.pri:hover { box-shadow: 0 14px 40px rgba(79,123,255,0.5); }
.btn.soon { opacity: .75; cursor: default; }

/* Hero */
.hero { position: relative; background: #080b18 url(../img/bg/hero.jpg) center / cover no-repeat; padding: 110px 0 120px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #cfd3ff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.03em; margin: 22px auto 18px; max-width: 900px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c6cae4; max-width: 680px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 34px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: var(--mute); font-size: 14px; }
.trust span::before { content: '✓'; color: var(--cyan); margin-right: 7px; }

/* Sections */
section { padding: 90px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 12px 0 10px; line-height: 1.1; }
.sec-head p { color: var(--mute); font-size: 17px; margin: 0; }
.dark-bg { background: var(--bg2) url(../img/bg/section.jpg) center / cover no-repeat; }

/* Carousel */
.wrap.wide { max-width: 1760px; }
/* As wide as the screen allows, but never taller than the window, so the whole picture is always in view */
.carousel { position: relative; max-width: min(80%, calc((100vh - 140px) * 16 / 9 * 0.8)); margin: 0 auto; }
@media (max-width: 700px) { .carousel { max-width: 100%; } }
/* The band is as wide as the screen; each picture flies across all of it, so nothing clips it at the box edges */
.stage { overflow: hidden; padding-bottom: 70px; }
.slides { position: relative; aspect-ratio: 16 / 9; }
/* Swoosh: fast through the middle of the move, soft at both ends, with a light motion blur while it flies */
.slide { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0b0e1c; box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,92,255,0.15); transform: translateX(150vw); transition: transform 1.1s cubic-bezier(.77, 0, .18, 1); }
.slide.moving { animation: swoosh 1.1s cubic-bezier(.77, 0, .18, 1); }
@keyframes swoosh { 0%, 100% { filter: none; } 45% { filter: blur(6px) brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .slide { transition-duration: .01s; } .slide.moving { animation: none; } }
.slide .cap a { pointer-events: none; } .slide.on .cap a { pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.slide .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 26px 18px; background: linear-gradient(to top, rgba(5,7,16,0.92), transparent); display: flex; align-items: end; gap: 12px; }
.slide .cap b { font-size: 19px; }
.slide .cap span { color: var(--mute); font-size: 15px; }
.slide .cap a { margin-left: auto; font-size: 14px; color: #cfd3ff; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(8,11,24,0.7); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; backdrop-filter: blur(8px); }
.car-btn.prev { left: -23px; } .car-btn.next { right: -23px; }

/* App cards */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.app-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.45); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.app-card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.app-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
.app-card:hover .shot img { transform: scale(1.04); }
.app-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-title { display: flex; align-items: center; gap: 12px; }
.app-title img { width: 40px; height: 40px; border-radius: 10px; }
.app-title .ph { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.app-title h3 { margin: 0; font-size: 21px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: #cfd3ff; white-space: nowrap; }
.tag.free { color: #7ef0c1; border-color: rgba(126,240,193,0.35); }
.app-card p { margin: 0; color: var(--mute); font-size: 15px; }
.app-card .more { margin-top: auto; padding-top: 8px; color: #b9b0ff; font-weight: 600; font-size: 15px; }
.app-card .more::after { content: ' →'; }

/* Why strip */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.why div { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.why .ico { font-size: 26px; }
.why h4 { margin: 10px 0 6px; font-size: 18px; }
.why p { margin: 0; color: var(--mute); font-size: 15px; }

/* Accent band */
.band { background: #4f46e5 url(../img/bg/accent.jpg) center / cover no-repeat; padding: 70px 0; text-align: center; }
.band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -0.02em; }
.band p { margin: 0 0 26px; color: rgba(255,255,255,0.9); font-size: 17px; }
.band .btn { background: #fff; color: #1c1640; border: 0; }

/* Footer */
footer { background: #06070f url(../img/bg/footer.jpg) center top / cover no-repeat; padding: 60px 0 40px; color: var(--mute); font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot h5 { color: var(--text); font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.foot a { display: block; margin: 6px 0; } .foot a:hover { color: var(--text); }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* App pages */
.app-hero { position: relative; background: #080b18 url(../img/bg/hero.jpg) center / cover no-repeat; padding: 80px 0 60px; }
.app-hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; }
.app-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 14px 0 12px; letter-spacing: -0.03em; line-height: 1.05; }
.app-hero p.lead { font-size: 18px; color: #c6cae4; margin: 0 0 26px; }
.app-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.app-hero .main-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.55); cursor: zoom-in; }
.app-hero .icon { width: 64px; height: 64px; border-radius: 16px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: zoom-in; transition: transform .2s; }
.gallery figure:hover { transform: translateY(-3px); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--mute); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feat { padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.feat h4 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--mute); font-size: 15px; }
.prose { max-width: 820px; margin: 0 auto; color: #c9cde6; font-size: 17px; }
.prose p { margin: 0 0 16px; }
.reqs { max-width: 820px; margin: 30px auto 0; padding: 22px 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--mute); font-size: 15px; }
.reqs b { color: var(--text); }

/* Picture viewer */
.lightbox { position: fixed; inset: 0; background: rgba(3,4,10,0.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 30px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 100px rgba(0,0,0,0.7); }

.nav-links a { white-space: nowrap; }
.brand { white-space: nowrap; }
/* Narrow windows and phones: the menu folds into the ☰ button */
@media (max-width: 1040px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0b0e1c; border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 14px 24px; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0b0e1c; border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 14px 24px; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .hero { padding: 80px 0 90px; }
  .car-btn { display: none; }
  .app-hero .wrap { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
