:root {
  --color-background: #f3f5f9;
  --color-card: #ffffff;
  --color-primary: #004aad;
  --color-primary-dark: #00357d;
  --color-text: #1f2933;
  --color-muted: #5f6c7b;
  --color-border: #d0d7e2;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #eff6ff 0%, #f8fafc 60%, #f1f5f9 100%);
  color: var(--color-text);
  min-height: 100vh;
  padding-top: 70px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav__links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
}

.page-wrapper {
  margin: 0 auto;
  max-width: 1200px;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  scroll-margin-top: 90px;
}

.section--alt {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 48px;
  margin: 0 -24px;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.section__header h2 {
  margin: 0 0 16px 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section__header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  scroll-margin-top: 90px;
  padding: 40px 0;
}

.hero--split {
  flex-direction: row;
  text-align: left;
  align-items: center;
  gap: 48px;
  padding: 60px 0;
}

.hero--split > div:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phone-mockup {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  background: #1c1c1e;
  border-radius: 44px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 0 5px #111,
    0 40px 80px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(0, 74, 173, 0.1);
}

/* Power button — right side */
.phone-mockup::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 110px;
  width: 5px;
  height: 52px;
  background: #2c2c2e;
  border-radius: 0 4px 4px 0;
}

/* Volume buttons — left side, two stacked */
.phone-mockup::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 90px;
  width: 5px;
  height: 36px;
  background: #2c2c2e;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 48px 0 #2c2c2e; /* second volume button below */
}

.phone-mockup__screen {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #000;
}

/* Punch-hole camera */
.phone-mockup__screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 1.5px #1a1a1a;
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-google-play {
  display: inline-block;
  height: 60px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.badge-google-play img {
  height: 100%;
  width: auto;
  display: block;
}

.hero__logo {
  width: 140px;
  height: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0;
  max-width: 680px;
  color: var(--color-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Join Options */
.join-options {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
  margin-bottom: 32px;
}

.join-options h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.join-options__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.join-option-card {
  background: var(--color-card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(0, 74, 173, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-option-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(0, 74, 173, 0.15);
}

.join-option-card__icon {
  font-size: 3.5rem;
}

.join-option-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--color-text);
}

.join-option-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.join-option-card__cta {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.join-option-card:hover .join-option-card__cta {
  transform: translateX(4px);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--color-card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 74, 173, 0.08);
  transition: transform 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-card__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.benefit-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
}

.benefit-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* App Preview */
.app-preview {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.app-preview h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  text-align: center;
}

.app-preview__intro {
  margin: 0 0 32px 0;
  text-align: center;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Signup Card */
.signup-card {
  background: var(--color-card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 74, 173, 0.08);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.signup-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  text-align: center;
}

.signup-card > p {
  margin: 0 0 32px 0;
  text-align: center;
  color: var(--color-muted);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-card);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 16px 0 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.faq-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* Contact Card */
.contact-card {
  background: var(--color-card);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 74, 173, 0.08);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-card h2 {
  margin: 0 0 24px 0;
  font-size: 2rem;
}

.contact-card p {
  margin: 0 0 16px 0;
  color: var(--color-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.contact-info {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-method strong {
  color: var(--color-text);
}

.contact-method a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-method a:hover {
  text-decoration: underline;
}

.screenshot-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.screenshot-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  outline: none;
  border: none;
  border-radius: 0;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.fieldset {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fieldset legend {
  font-weight: 600;
  padding: 0 8px;
}

.fieldset__hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.2);
}

.field--inline {
  margin-left: 36px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.checkbox--other {
  margin-right: 12px;
}

.privacy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-primary), #2e7ff8);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.button--large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.button--full {
  width: 100%;
  text-align: center;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 74, 173, 0.3);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-messages {
  min-height: 24px;
  font-weight: 500;
}

.form-messages--success {
  color: #037947;
}

.form-messages--error {
  color: #c53030;
}

.form-messages--info {
  color: var(--color-muted);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.05), rgba(46, 127, 248, 0.05));
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.cta-section p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Optional Link */
.optional-link {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.optional-link p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.optional-link a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.optional-link a:hover {
  text-decoration: underline;
}

/* Form Card for questionnaire */
.form-card {
  background: var(--color-card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 74, 173, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.form-card h2 {
  margin: 0 0 32px 0;
  font-size: 1.6rem;
  text-align: center;
}

.footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-top: 40px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Privacy Policy */
.privacy-policy__content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-card);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 74, 173, 0.08);
}

.privacy-policy__content h2 {
  margin: 40px 0 16px 0;
  font-size: 1.5rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}

.privacy-policy__content h2:first-of-type {
  margin-top: 24px;
}

.privacy-policy__content h3 {
  margin: 24px 0 12px 0;
  font-size: 1.15rem;
  color: var(--color-text);
}

.privacy-policy__content p {
  margin: 0 0 16px 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.privacy-policy__content ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
  color: var(--color-muted);
  line-height: 1.7;
}

.privacy-policy__content li {
  margin-bottom: 8px;
}

.privacy-policy__content a {
  color: var(--color-primary);
  text-decoration: none;
}

.privacy-policy__content a:hover {
  text-decoration: underline;
}

.privacy-policy__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
  font-size: 0.95rem;
}

.privacy-policy__table th,
.privacy-policy__table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.privacy-policy__table th {
  background: rgba(0, 74, 173, 0.05);
  font-weight: 600;
  color: var(--color-text);
}

.privacy-policy__table td {
  color: var(--color-muted);
}

.privacy-policy__table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

.privacy-policy__updated {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .privacy-policy__content {
    padding: 28px 20px;
  }

  .privacy-policy__table {
    font-size: 0.85rem;
  }

  .privacy-policy__table th,
  .privacy-policy__table td {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .nav__container {
    padding: 10px 16px;
  }

  .nav__logo {
    height: 35px;
  }

  .nav__links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .page-wrapper {
    padding: 32px 16px 48px;
    gap: 60px;
  }

  .section--alt {
    padding: 32px 24px;
    margin: 0 -16px;
    border-radius: 20px;
  }

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

  .app-preview {
    padding: 24px;
  }

  .signup-card {
    padding: 28px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .screenshot-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .faq-item {
    padding: 20px;
  }

  .fieldset {
    padding: 20px;
  }

  .field--inline {
    margin-left: 0;
    width: 100%;
  }

  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .join-options__grid {
    grid-template-columns: 1fr;
  }

  .hero--split {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 32px;
    padding: 40px 0;
  }

  .hero--split > div:first-child {
    text-align: center;
  }

  .phone-mockup {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .nav__links {
    gap: 12px;
    font-size: 0.85rem;
  }

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

  .section__header h2 {
    font-size: 1.6rem;
  }

  .screenshot-gallery__grid {
    grid-template-columns: 1fr;
  }
}
