/* FrameDrop Landing Page — Shared Styles */

:root {
  /* Organic palette */
  --primary: #386641;
  --primary-dark: #2d5235;
  --primary-light: #4a7c53;
  --cream: #f2e8cf;
  --cream-dark: #e8dbb8;
  --cream-light: #f7f1e3;
  --accent: #6a994e;
  --accent-light: #a7c957;
  --accent-dark: #4e7a3a;
  --warm-white: #faf8f2;
  --surface-dark: #1a2e1f;
  --surface-container: #243828;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;
  --bg: #ffffff;
  --bg-alt: #f9f7f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero --- */
.hero {
  padding: 10rem 1.5rem 6rem;
  text-align: center;
  background: linear-gradient(170deg, var(--bg) 0%, var(--cream-light) 40%, var(--cream) 70%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 153, 78, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 232, 207, 0.4), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 102, 65, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 102, 65, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

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

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* --- How It Works --- */
.how-it-works {
  padding: 6rem 1.5rem;
  background: var(--bg);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

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

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  color: var(--primary);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  color: var(--cream-dark);
  flex-shrink: 0;
}

/* --- Three Pillars --- */
.pillars {
  padding: 6rem 1.5rem;
  background: var(--bg-alt);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}

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

.pillar-card--accent {
  background: linear-gradient(170deg, var(--cream-light) 0%, var(--bg) 100%);
  border-color: rgba(56, 102, 65, 0.15);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  color: var(--primary);
}

.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.pillar-card > p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pillar-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-details li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 1.5rem;
  position: relative;
}

.pillar-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Security Section --- */
.security {
  padding: 6rem 1.5rem;
  background: var(--bg);
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.security-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.security-text > p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.security-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  margin-top: 1px;
}

.security-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lock-graphic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lock-graphic::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px dashed var(--cream-dark);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.lock-graphic svg {
  width: 80px;
  height: 80px;
  color: var(--primary);
}

/* --- F-Droid Section --- */
.fdroid {
  padding: 6rem 1.5rem;
  background: var(--bg-alt);
}

.fdroid-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fdroid-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
}

.fdroid-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fdroid-step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.fdroid-step-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.fdroid-step-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fdroid-step-content a:hover {
  color: var(--accent-dark);
}

.fdroid-repo-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--cream-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
}

.fdroid-qr img {
  border-radius: 8px;
  border: 8px solid var(--bg);
  box-shadow: var(--shadow);
}

.fdroid-url code {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  word-break: break-all;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
}

.fdroid-url-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- CTA --- */
.cta {
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary.btn-cta {
  background: var(--cream);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary.btn-cta:hover {
  background: #fff;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.cta .btn-outline.btn-cta {
  color: var(--cream);
  border-color: var(--cream);
}

.cta .btn-outline.btn-cta:hover {
  background: var(--cream);
  color: var(--primary);
}

/* --- Footer --- */
.footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-about {
  max-width: 300px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-about > p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-email {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--accent-light);
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Legal Pages (shared across privacy/terms/support/delete-account) --- */
.page-header {
  padding: 8rem 1.5rem 3rem;
  background: linear-gradient(170deg, var(--bg) 0%, var(--cream-light) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.legal-content {
  padding: 3rem 1.5rem 5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-light);
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

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

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--accent-dark);
}

/* Info card for delete account / support */
.info-card {
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}

.info-card h3 {
  margin-top: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-box {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #e65100;
  font-size: 0.95rem;
}

.warning-box strong {
  color: #bf360c;
}

/* --- Responsive --- */
/* --- Hero note --- */
.hero .hero-note {
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-note a {
  color: var(--primary);
  font-weight: 600;
}

/* --- Photo Frames --- */
.frames {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--bg) 60%);
}

.frames-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 4.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--accent-light);
  color: var(--surface-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.frames-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.frames-text > p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.frame-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(26, 46, 31, 0.25));
}

.section-title--sub {
  margin-bottom: 2rem;
}

.section-title--sub h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}

.device-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.device-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--cream);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.75rem;
}

.device-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.device-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.btn-small {
  margin-top: 1rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
}

.fdroid-step-content a.btn,
.fdroid-step-content a.btn:hover {
  color: #fff;
  text-decoration: none;
}

/* --- Download --- */
.download {
  padding: 6rem 1.5rem;
  background: var(--bg);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
}

.download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.download-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.download-card .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .navbar-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
    margin: -0.5rem 0;
  }

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

  .frames-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .frames-text h2 {
    font-size: 1.75rem;
  }

  .devices-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .security-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .security-visual {
    order: -1;
  }

  .security-list {
    text-align: left;
  }

  .fdroid-repo-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-links {
    justify-content: center;
  }
}
