/* Reset & Base */
:root {
  --bg: #f5f5f7;
  --text-main: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --white: #ffffff;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 17px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
}

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

/* Utilities */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--text-main);
  /* Apple style often uses black for primary actions on light bg */
  color: var(--white);
}

.btn-primary:hover {
  background-color: #333;
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--accent);
  background: transparent;
}

.btn-secondary:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  background-color: var(--text-main);
  color: var(--white);
}

.section {
  padding: 80px 0;
}

.section-gray {
  background-color: #fbfbfd;
  /* Subtle alternating background */
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-list a {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--text-main);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: clamp(40px, 8vw, 64px);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.hero-sub {
  font-size: clamp(20px, 4vw, 24px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* Hero Visual & Mocks */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Device Frame */
.mock-device {
  width: 320px;
  /* Reduced width for better fit */
  background: var(--bg);
  border-radius: 40px;
  border: 8px solid #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
}

.badge-gray {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.status {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.task-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 12px;
}

.reward-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.lock-icon {
  font-size: 14px;
}

/* Locked Reward */
.reward-card.locked {
  position: relative;
  overflow: hidden;
}

.reward-preview {
  height: 60px;
  background-color: #f5f5f7;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.blur-box {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* How It Works */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 20px;
  color: var(--text-secondary);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-item {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--text-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.step-item p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Rewards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.card-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.example-list li {
  font-size: 14px;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.example-list li:last-child {
  border-bottom: none;
}

/* Section Content Block */
.content-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.content-block p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Chips & Use Cases */
.grid-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.chip {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.example-item {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.check {
  color: #34c759;
  /* Apple Green */
  font-weight: bold;
}

/* Simple List */
.simple-list {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.simple-list li {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background: var(--bg);
}

.cta-sub {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.centered {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #fbfbfd;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.copyright {
  font-size: 12px;
  color: #999;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-list {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
    z-index: 90;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav .btn-sm,
  .site-header .btn-sm {
    display: none;
    /* Hide header button on mobile, keeping hamburger clean */
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }
}