/* ========================================
   Focus Launcher — Website Styles
   ======================================== */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* brand palette */
  --clr-blue: #6AACB8;
  --clr-blue-dark: #4D8E9A;
  --clr-green: #7DB95A;
  --clr-green-dark: #5E9A3E;
  --clr-cream: #F8F6F2;
  --clr-white: #FFFFFF;
  --clr-dark: #1A1D23;
  --clr-dark-card: #22252C;
  --clr-text: #333840;
  --clr-text-muted: #6B7280;
  --clr-border: rgba(0, 0, 0, .06);

  /* gradients */
  --gradient-hero: linear-gradient(160deg, #e0f4f7 0%, #f0f9eb 40%, #f8f6f2 100%);
  --gradient-card: linear-gradient(135deg, rgba(106, 172, 184, .08) 0%, rgba(125, 185, 90, .06) 100%);
  --gradient-cta: linear-gradient(135deg, #6AACB8 0%, #7DB95A 100%);

  /* spacing */
  --section-pad: 100px 0;
  --container-max: 1160px;

  /* radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .07);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, .10);
  --shadow-glow: 0 0 60px rgba(106, 172, 184, .18);

  /* transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--clr-text);
  background: var(--clr-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 242, .82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow .3s var(--ease);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--clr-dark);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color .25s var(--ease);
}

.nav-links a:hover {
  color: var(--clr-blue);
}

.nav-cta {
  padding: 9px 22px;
  border-radius: 50px;
  background: var(--gradient-cta);
  color: var(--clr-white) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 172, 184, .3);
}

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: .3s var(--ease);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 160px 0 100px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 172, 184, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 185, 90, .1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 30px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--clr-dark);
  margin-bottom: 20px;
}

.hero-title span {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--clr-white);
  box-shadow: 0 8px 25px rgba(106, 172, 184, .25);
}

.btn-primary:hover {
  box-shadow: 0 12px 35px rgba(106, 172, 184, .35);
}

.btn-secondary {
  background: var(--clr-white);
  color: var(--clr-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   VIDEO
   ======================================== */
.video-section {
  padding: var(--section-pad);
  text-align: center;
}

.video-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--clr-dark);
  border: 3px solid #333;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: var(--section-pad);
}

.features .section-header {
  text-align: center;
}

.features .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-icon.blue {
  background: rgba(106, 172, 184, .12);
  color: var(--clr-blue);
}

.feature-icon.green {
  background: rgba(125, 185, 90, .12);
  color: var(--clr-green);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: .92rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ========================================
   SCREENSHOTS
   ======================================== */
.screenshots {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--clr-cream) 0%, #eef6f8 50%, var(--clr-cream) 100%);
}

.screenshots .section-header {
  text-align: center;
}

.screenshots .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.gallery-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform .5s var(--ease);
  gap: 24px;
}

.gallery-slide {
  flex: 0 0 calc(33.333% - 16px);
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--clr-dark);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 3px solid #333;
  transition: transform .4s var(--ease);
}

.phone-frame:hover {
  transform: scale(1.04);
}

.phone-frame img {
  width: 100%;
  display: block;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.gallery-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  transition: .25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.gallery-btn:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
  border-color: var(--clr-blue);
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(106, 172, 184, .25);
  cursor: pointer;
  transition: .3s var(--ease);
}

.gallery-dot.active {
  background: var(--clr-blue);
  width: 28px;
  border-radius: 5px;
}

/* ========================================
   PRIVACY HIGHLIGHTS
   ======================================== */
.privacy-section {
  padding: var(--section-pad);
}

.privacy-section .section-header {
  text-align: center;
}

.privacy-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.privacy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.privacy-card .emoji {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.privacy-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 6px;
}

.privacy-card p {
  font-size: .82rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  padding: 80px 0;
}

.cta-card {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: var(--clr-white);
  color: var(--clr-dark);
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 1;
}

.btn-white:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, .6);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-white);
  margin-bottom: 14px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-desc {
  font-size: .9rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer h4 {
  color: var(--clr-white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: .9rem;
  transition: color .25s var(--ease);
}

.footer-links a:hover {
  color: var(--clr-blue);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s var(--ease);
}

.footer-social a:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}

.footer-bar a {
  transition: color .25s var(--ease);
}

.footer-bar a:hover {
  color: var(--clr-blue);
}

/* ========================================
   PRIVACY POLICY PAGE
   ======================================== */
.policy-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.policy-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}

.policy-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.policy-date {
  font-size: .88rem;
  color: var(--clr-text-muted);
  margin-bottom: 36px;
}

.policy-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-content p,
.policy-content ul {
  font-size: .95rem;
  color: var(--clr-text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.policy-content ul {
  padding-left: 22px;
  list-style: disc;
}

.policy-content ul li {
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content a:hover {
  color: var(--clr-blue-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px 0;
  }

  .navbar .container {
    height: 58px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .08);
    transition: right .4s var(--ease);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 70px;
  }

  .hero-icon {
    width: 70px;
    height: 70px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-slide {
    flex: 0 0 calc(50% - 12px);
  }

  .phone-frame {
    width: 180px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .policy-content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery-slide {
    flex: 0 0 100%;
  }

  .phone-frame {
    width: 200px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 40px 24px;
  }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --clr-cream: #0F1115;
    --clr-white: #1C1F27;
    --clr-dark: #F5F6F8;
    --clr-dark-card: #252830;
    --clr-text: #E0E2E8;
    --clr-text-muted: #A8ADB8;
    --clr-border: rgba(255, 255, 255, .10);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, .35);
  }

  body {
    background: #0F1115;
  }

  .navbar {
    background: rgba(15, 17, 21, .92);
    border-bottom-color: rgba(255, 255, 255, .10);
  }

  .nav-links a {
    color: #B0B5C0;
  }

  .nav-links a:hover {
    color: #89D4E0;
  }

  .nav-toggle span {
    background: #E0E2E8;
  }

  .hero {
    background: linear-gradient(160deg, #12181c 0%, #131a12 40%, #0F1115 100%);
  }

  .hero-desc {
    color: #B0B5C0;
  }

  .section-subtitle {
    color: #A8ADB8;
  }

  .feature-card {
    background: #1C1F27;
    border-color: rgba(255, 255, 255, .08);
  }

  .feature-card p {
    color: #A8ADB8;
  }

  .feature-icon.blue {
    background: rgba(106, 172, 184, .18);
  }

  .feature-icon.green {
    background: rgba(125, 185, 90, .18);
  }

  .phone-frame {
    border-color: #444;
  }

  .screenshots {
    background: linear-gradient(180deg, #0F1115 0%, #141820 50%, #0F1115 100%);
  }

  .privacy-card {
    background: #1C1F27;
    border-color: rgba(255, 255, 255, .08);
  }

  .privacy-card p {
    color: #A8ADB8;
  }

  .gallery-btn {
    background: #1C1F27;
    color: #E0E2E8;
    border-color: rgba(255, 255, 255, .12);
  }

  .btn-secondary {
    background: #1C1F27;
    color: #E0E2E8;
    border-color: rgba(255, 255, 255, .12);
  }

  .footer {
    background: #0A0C0F;
    color: rgba(255, 255, 255, .88);
  }

  .footer h4 {
    color: #F5F6F8;
  }

  .footer-brand {
    color: #F5F6F8;
  }

  .footer-desc {
    color: rgba(255, 255, 255, .82);
  }

  .footer-links a {
    color: rgba(255, 255, 255, .82);
  }

  .footer-social a {
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .9);
  }

  .footer-bar {
    color: rgba(255, 255, 255, .72);
    border-top-color: rgba(255, 255, 255, .14);
  }

  .policy-content {
    background: #1C1F27;
  }

  .policy-content p,
  .policy-content ul {
    color: #D8DAE0;
  }

  .nav-links {
    background: #1C1F27;
  }

  .video-wrapper {
    border-color: #444;
  }

  .cta-card h2 {
    color: #FFFFFF;
  }

  .cta-card p {
    color: rgba(255, 255, 255, .9);
  }
}