/* =========================================================
   QR Protect — css/style.css
   ========================================================= */

/* Custom Properties */
:root {
  --bg:        #0D1B2A;
  --primary:   #1565C0;
  --dark-blue: #0D47A1;
  --white:     #FFFFFF;
  --secondary: #F5F5F5;
  --font:      'Inter', sans-serif;

  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-primary: rgba(21, 101, 192, 0.25);
  --card-bg:        rgba(21, 101, 192, 0.07);
  --surface:        rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
}

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

/* =========================================================
   Header
   ========================================================= */

header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  max-height: 60px;
  width: auto;
}

/* Desktop nav */
nav.desktop-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

nav.desktop-nav a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.desktop-nav a:hover {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

nav.desktop-nav a.active {
  color: var(--white);
  border-bottom-color: var(--primary);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 1.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s, color 0.15s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(21, 101, 192, 0.1);
  color: var(--white);
  text-decoration: none;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  nav.desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(245, 245, 245, 0.6);
  font-size: 0.85rem;
  line-height: 2;
}

footer p + p {
  margin-top: 0;
}

footer a {
  color: var(--secondary);
}

footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   Shared Section Utilities
   ========================================================= */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2.75rem;
  color: var(--white);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  text-align: center;
  padding: 5rem 1.5rem 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  width: clamp(120px, 25vw, 180px);
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero .description {
  font-size: 1.05rem;
  color: var(--secondary);
  opacity: 0.85;
  max-width: 440px;
}

/* =========================================================
   How It Works
   ========================================================= */

.how-it-works {
  padding: 4.5rem 1.5rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: 14px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.step p {
  font-size: 0.9rem;
  color: var(--secondary);
  opacity: 0.8;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .steps {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* =========================================================
   Features
   ========================================================= */

.features-section {
  padding: 4.5rem 1.5rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-card {
  flex: 1;
  text-align: center;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-primary);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--secondary);
  opacity: 0.8;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features {
    flex-direction: row;
    gap: 1.25rem;
  }
}

/* =========================================================
   App Store
   ========================================================= */

.app-store-section {
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.app-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  min-width: 190px;
  user-select: none;
}

.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-label small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.store-icon {
  font-size: 1.6rem;
  opacity: 0.3;
  flex-shrink: 0;
}

.coming-soon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--dark-blue);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

@media (min-width: 480px) {
  .app-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* =========================================================
   Prose Pages (Privacy Policy / About)
   ========================================================= */

.prose-section {
  padding: 4rem 1.5rem 5rem;
}

.prose-inner {
  max-width: 720px;
  margin: 0 auto;
}

.prose-inner h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.prose-inner .effective-date {
  color: rgba(245, 245, 245, 0.45);
  font-size: 0.9rem;
  margin-bottom: 2.75rem;
}

.prose-inner h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
}

.prose-inner p {
  color: var(--secondary);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.prose-inner a {
  color: var(--secondary);
  word-break: break-word;
}

.prose-inner a:hover {
  color: var(--primary);
}

/* =========================================================
   About Page
   ========================================================= */

.about-avatar {
  width: clamp(120px, 40vw, 160px);
  height: clamp(120px, 40vw, 160px);
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  border: 3px solid rgba(21, 101, 192, 0.35);
  box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.08);
}

.about-contact {
  margin-top: 2.75rem;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: 14px;
}

.about-contact h2 {
  margin-top: 0;
}

.about-contact p {
  margin-bottom: 0.35rem;
}
