/* ============================
   Echo Note Landing Page
   Clean, Apple-style design
   ============================ */

:root {
  --color-primary: #007AFF;
  --color-primary-dark: #0051d4;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-border: #d2d2d7;
  --max-width: 1120px;
  --nav-height: 56px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ---- Reset ---- */
*, *::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, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 100;
  transition: background .3s;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.lang-switch {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 13px !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-text);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .2s;
}

.nav-cta:hover { opacity: .85; text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%);
}

.hero-badge {
  display: inline-block;
  background: rgba(0,122,255,.08);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #007AFF, #5856D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: #fff;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  text-decoration: none;
  color: #fff;
}

.hero-cta svg {
  width: 22px;
  height: 22px;
}

.hero-screenshots {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  padding: 0 20px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-screenshots::-webkit-scrollbar { display: none; }

.phone-frame {
  flex-shrink: 0;
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 6px solid #1d1d1f;
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.1);
  scroll-snap-align: center;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
}

.phone-frame:hover {
  transform: translateY(-8px);
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* ---- Section Shared ---- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .3s, box-shadow .3s;
}

.section-alt .feature-card {
  background: #fff;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.feature-icon.blue   { background: rgba(0,122,255,.1);  color: #007AFF; }
.feature-icon.purple { background: rgba(88,86,214,.1);  color: #5856D6; }
.feature-icon.green  { background: rgba(52,199,89,.1);  color: #34C759; }
.feature-icon.orange { background: rgba(255,149,0,.1);  color: #FF9500; }

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---- How It Works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

/* ---- Screenshots Gallery ---- */
.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery .phone-frame {
  width: 240px;
}

.gallery-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  display: none;
}

@media (max-width: 1200px) {
  .gallery-caption { display: block; }
}

/* ---- Privacy ---- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.privacy-card {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.privacy-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(52,199,89,.1);
  color: #34C759;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.privacy-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.privacy-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: #fff;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  opacity: .85;
  margin-bottom: 32px;
}

.cta-banner .hero-cta {
  background: #fff;
  color: var(--color-text);
}

.cta-banner .hero-cta:hover {
  color: var(--color-text);
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--color-text);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Privacy Policy Page ---- */
.page-header {
  padding: 120px 0 40px;
  text-align: center;
  background: var(--color-bg-alt);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
}

.page-header p {
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.page-content {
  padding: 60px 0 80px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}

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

.page-content p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav-toggle { display: block; }

  .hero { padding: 110px 0 60px; }

  .hero-screenshots { gap: 14px; }
  .phone-frame { width: 180px; border-radius: 22px; }

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

  .steps { grid-template-columns: 1fr; gap: 40px; }

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

  .gallery .phone-frame { width: 200px; }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .phone-frame { width: 160px; border-radius: 20px; }
  .feature-card { padding: 28px 24px; }
}
