/* Within Landing Page Styles */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600;700&display=swap");

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-bg: #fffdf7;
  --color-text-primary: #2d2d2d;
  --color-text-secondary: #6b6b6b;
  --color-accent-light: #ccecff;
  --color-accent-deep: #3292ff;
  --color-card-bg: rgba(255, 253, 247, 0.8);
  --color-card-border: rgba(45, 45, 45, 0.08);

  /* Typography */
  --font-family: "Roboto Condensed", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: var(--color-text-secondary);
}

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

a:hover {
  opacity: 0.8;
}

/* Focus states for accessibility */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-gradient {
  background: linear-gradient(
    180deg,
    var(--color-accent-light) 0%,
    var(--color-accent-deep) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary {
  color: var(--color-text-secondary);
}

/* Mesh Gradient Background */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: var(--color-bg);
  overflow: hidden;
}

.mesh-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse 80% 50% at 20% 10%,
      rgba(204, 236, 255, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(50, 146, 255, 0.1) 0%,
      transparent 50%
    );
}

/* Glassmorphic Card */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #1a1a1a;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-card-border);
}

.btn-secondary:hover {
  background: rgba(45, 45, 45, 0.05);
}

/* App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 14px;
  background: var(--color-text-primary);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(45, 45, 45, 0.15), 0 2px 4px rgba(45, 45, 45, 0.1);
}

.app-store-btn:hover {
  background: #1a1a1a;
  opacity: 1;
  box-shadow: 0 6px 16px rgba(45, 45, 45, 0.2), 0 3px 6px rgba(45, 45, 45, 0.15);
}

.app-store-btn:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
}

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

.app-store-btn .btn-text-small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
}

.app-store-btn .btn-text-large {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Header */
.header {
  padding: var(--spacing-lg) 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--color-text-primary);
  background-color: rgba(45, 45, 45, 0.04);
  opacity: 1;
}

.nav-links a.active {
  color: var(--color-text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--spacing-3xl) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.hero-text {
  max-width: 560px;
  justify-self: end;
}

.hero-tagline {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  width: fit-content;
}

.hero-title {
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
  width: fit-content;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-2xl);
  max-width: 420px;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 599px;
  background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: 36px;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 25px 50px -12px rgba(45, 45, 45, 0.25),
    0 50px 100px -20px rgba(45, 45, 45, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: contain;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer {
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-3xl);
  border-top: 1px solid rgba(45, 45, 45, 0.08);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: right;
}

/* Back to Home Button */
.back-home-btn {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-text-secondary);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
  transition: all 0.2s ease;
}

.back-home-btn:hover {
  color: var(--color-bg);
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  opacity: 1;
}

/* Privacy Policy Page */
.privacy-page {
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
  min-height: calc(100vh - 200px);
}

.privacy-header {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 2px solid rgba(45, 45, 45, 0.08);
}

.privacy-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.privacy-date {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.privacy-content {
  max-width: 720px;
}

.privacy-section {
  margin-bottom: var(--spacing-2xl);
}

.privacy-section h2 {
  margin-bottom: var(--spacing-md);
  font-size: 1.375rem;
  color: var(--color-text-primary);
}

.privacy-section h3 {
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  font-size: 1.0625rem;
  font-weight: 600;
}

.privacy-section p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.privacy-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--spacing-md);
}

.privacy-section li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-secondary);
}

.privacy-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: linear-gradient(
    180deg,
    var(--color-accent-light),
    var(--color-accent-deep)
  );
  border-radius: 50%;
}

.privacy-section a {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-section a:hover {
  opacity: 0.8;
}

.privacy-section a:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    order: 2;
    justify-self: center;
  }

  .hero-tagline {
    font-size: 0.75rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-mockup {
    order: 1;
    margin-bottom: var(--spacing-xl);
  }

  .phone-mockup {
    width: 240px;
    height: 522px;
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 32px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: var(--spacing-md) 0;
  }

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

  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

  .app-store-btn {
    padding: 12px 20px;
  }

  .app-store-btn svg {
    width: 24px;
    height: 24px;
  }

  .phone-mockup {
    width: 200px;
    height: 435px;
    border-radius: 32px;
    padding: 4px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .footer {
    margin-top: var(--spacing-xl);
  }

  .footer-copyright {
    text-align: center;
  }
}
