/* GetsMe Landing Page - Shared Styles */

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

:root {
  /* Brand colors (aligned with Theme.swift) */
  --brand-pink: #FF00D9;
  --brand-purple: #C536FD;
  --brand-yellow: #FFD900;
  --brand-red: #FF164D;
  --brand-green: #22C55E;

  /* Background */
  --bg-primary: #080808;
  --bg-card: #1E1E1E;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --text-body: rgba(255, 255, 255, 0.85);

  /* Grays */
  --gray-33: #333333;
  --gray-66: #666666;

  /* Link */
  --link-color: #C536FD;

  /* Gradient stops (from SVG logo) */
  --grad-1: #CA77FE;
  --grad-2: #8962FE;
  --grad-3: #BE39FE;
  --grad-4: #E92BEA;
  --grad-5: #FFBF00;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.header-logo {
  height: 20px;
  width: auto;
}

/* ===== Hero + Info wrapper ===== */
.hero-info-wrapper {
  position: relative;
  overflow: hidden;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.3) 0%,
    rgba(8, 8, 8, 0.1) 30%,
    rgba(8, 8, 8, 0.4) 70%,
    rgba(8, 8, 8, 1) 100%
  );
}

/* Decorative rings - centered on the phone area */
.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 900px;
  height: 900px;
  pointer-events: none;
  z-index: 1;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 500px;
  height: 500px;
  border-color: rgba(197, 54, 253, 0.12);
}

.ring-2 {
  width: 620px;
  height: 620px;
  border-color: rgba(197, 54, 253, 0.08);
}

.ring-3 {
  width: 740px;
  height: 740px;
  border-color: rgba(255, 191, 0, 0.06);
}

.ring-4 {
  width: 860px;
  height: 860px;
  border-color: rgba(255, 191, 0, 0.04);
}

/* Hero content layout - use position relative so person can overlap phone */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding-top: 40px;
}

/* Phone mockup - centered anchor */
.phone-wrapper {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  /* Phone extends down, bottom covered by info section */
  margin-bottom: -210px;
}

.phone-frame {
  width: 368px;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-notch svg {
  width: 80px;
  height: auto;
}

.phone-screen {
  width: 100%;
  display: block;
  border-radius: 36px;
}

/* Person photo - top edge aligns with info section top edge */
.person-wrapper {
  position: absolute;
  z-index: 10;
  right: calc(50% - 310px);
  top: 0;
  transform: translateY(-100%);
}

.person-photo {
  width: 220px;
  height: auto;
  object-fit: contain;
}

/* ===== Info Section ===== */
.info-section {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 48px 0 36px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.info-logo {
  width: 224px;
  height: auto;
  margin: 0 auto 20px;
}

.info-tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 40px 0 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--link-color);
  font-size: 14px;
  font-weight: 500;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-contact {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-contact a {
  color: var(--link-color);
}

/* ===== Legal Pages ===== */
.legal-page {
  padding-top: 100px;
  padding-bottom: 40px;
}

.legal-page .site-header {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
  margin-top: 1.4em;
  color: var(--text-primary);
}

.legal-content p {
  margin: 1em 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--link-color);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content ol,
.legal-content ul {
  padding-left: 1.7em;
  margin-top: 1em;
  color: var(--text-body);
}

.legal-content li {
  margin-bottom: 0.5em;
  font-size: 15px;
}

.legal-content blockquote {
  margin: 1em 0 1em 1.7em;
  padding-left: 1em;
  border-left: 2px solid var(--link-color);
  color: rgba(255, 255, 255, 0.7);
}

.legal-content em {
  color: rgba(255, 255, 255, 0.7);
}

.legal-content mark {
  background-color: var(--link-color);
  color: var(--text-primary);
  padding: 0 4px;
  border-radius: 2px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2em 0;
}

.legal-content table {
  margin: 1em 0;
  border-collapse: collapse;
  width: 100%;
}

.legal-content th {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25em 0.5em;
  color: var(--text-primary);
}

.legal-content td {
  padding: 0.125em 0.5em 0.25em;
  color: var(--text-body);
}

.legal-content tbody {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link-color);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1023px) {
  .container {
    padding: 0 24px;
  }

  .phone-frame {
    width: 300px;
  }

  .phone-wrapper {
    margin-bottom: -160px;
  }

  .person-wrapper {
    right: calc(50% - 210px);
  }

  .person-photo {
    width: 180px;
  }

  .hero-rings {
    width: 700px;
    height: 700px;
  }

  .ring-1 { width: 400px; height: 400px; }
  .ring-2 { width: 500px; height: 500px; }
  .ring-3 { width: 600px; height: 600px; }
  .ring-4 { width: 700px; height: 700px; }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 80px;
  }

  .phone-frame {
    width: 260px;
  }

  .phone-wrapper {
    margin-bottom: -140px;
  }

  .person-wrapper {
    display: none;
  }

  .hero-rings {
    width: 500px;
    height: 500px;
  }

  .ring-1 { width: 300px; height: 300px; }
  .ring-2 { width: 360px; height: 360px; }
  .ring-3 { width: 420px; height: 420px; }
  .ring-4 { width: 500px; height: 500px; }

  .info-section {
    padding: 36px 0 24px;
  }

  .info-logo {
    width: 180px;
  }

  .info-tagline {
    font-size: 18px;
  }

  .info-description {
    font-size: 14px;
    padding: 0 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .site-footer {
    padding: 32px 0 48px;
  }
}
