/* Zincir (Chain) App Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0e1552;
  --primary-light: #2563eb;
  --accent: #ff6b5b;
  --accent-yellow: #fdb90c;
  --text: #6b6b6b;
  --text-dark: #191d27;
  --bg-light: #f8f9fc;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(14, 21, 82, 0.08);
  --shadow-hover: 0 20px 40px rgba(14, 21, 82, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
  --theme-bg: #f8f9fc;
  --theme-surface: #ffffff;
  --theme-text: #64748b;
  --theme-text-dark: #0f172a;
  --theme-primary: #2563eb;
  --theme-accent: #2563eb;
  --theme-border: #e2e2e7;
  --theme-phone-bg: #f2f2f7;
  --theme-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

body[data-theme="dark"] {
  --theme-bg: #090d16;
  --theme-surface: #151d30;
  --theme-text: #94a3b8;
  --theme-text-dark: #f1f5f9;
  --theme-primary: #6366f1;
  --theme-accent: #6366f1;
  --theme-border: #2e3e5b;
  --theme-phone-bg: #090d16;
  --theme-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body[data-theme="pink"] {
  --theme-bg: #f9f6f7;
  --theme-surface: #ffffff;
  --theme-text: #75686b;
  --theme-text-dark: #3a2e31;
  --theme-primary: #c28c98;
  --theme-accent: #c28c98;
  --theme-border: #efe8ea;
  --theme-phone-bg: #f9f6f7;
  --theme-shadow: 0 8px 30px rgba(194, 140, 152, 0.08);
}

body[data-theme="granite"] {
  --theme-bg: #22252a;
  --theme-surface: #2d3139;
  --theme-text: #b0bec5;
  --theme-text-dark: #eceff1;
  --theme-primary: #90a4ae;
  --theme-accent: #90a4ae;
  --theme-border: #444b59;
  --theme-phone-bg: #22252a;
  --theme-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--theme-text);
  background: var(--theme-bg);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme="dark"] {
  background: #090d16;
  color: #94a3b8;
}

body[data-theme="pink"] {
  background: #f9f6f7;
  color: #75686b;
}

body[data-theme="granite"] {
  background: #22252a;
  color: #b0bec5;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--theme-border);
  transition: all 0.3s ease;
}

body[data-theme="dark"] .header {
  background: rgba(9, 13, 22, 0.85);
}

body[data-theme="pink"] .header {
  background: rgba(249, 246, 247, 0.85);
}

body[data-theme="granite"] .header {
  background: rgba(34, 37, 42, 0.85);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-text-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.logo span {
  color: var(--theme-primary);
  transition: color 0.3s ease;
}

.logo-icon {
  font-size: 1.6rem;
  animation: rotateLink 12s infinite linear;
}

@keyframes rotateLink {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-weight: 600;
  color: var(--theme-text-dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--theme-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 21, 82, 0.2);
}

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

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 91, 0.3);
}

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

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

.lang-switch {
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(14, 21, 82, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lang-switch:hover {
  background: rgba(14, 21, 82, 0.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--theme-bg) 0%, rgba(37, 99, 235, 0.03) 50%, var(--theme-surface) 100%);
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--theme-surface);
  color: var(--theme-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
  transition: all 0.3s ease;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--theme-text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.hero h1 .highlight {
  color: var(--theme-primary);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--theme-primary);
  opacity: 0.12;
  z-index: -1;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 560px;
  color: var(--theme-text);
  transition: color 0.3s ease;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--app-primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  background: #000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-text span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.store-btn-text span:last-child {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(14, 21, 82, 0.08);
  padding-top: 24px;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.hero-stat-item span {
  font-size: 1.2rem;
}

/* Custom Interactive Phone Mockup & Themes */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.theme-switcher-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.theme-switcher-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.8;
}

.theme-switcher {
  display: inline-flex;
  gap: 8px;
  background: rgba(14, 21, 82, 0.04);
  padding: 6px 12px;
  border-radius: 50px;
  align-items: center;
  border: 1px solid rgba(14, 21, 82, 0.05);
}

body[data-theme="dark"] .theme-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn:hover {
  transform: scale(1.2);
}

.theme-btn.active {
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(14, 21, 82, 0.25);
}

body[data-theme="dark"] .theme-btn.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.phone-mockup {
  width: 100%;
  max-width: 295px;
  height: auto;
  aspect-ratio: 295 / 655;
  background: #0f172a;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  border: 4px solid #334155;
  position: relative;
  overflow: hidden;
  animation: floatMockup 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

body[data-theme="pink"] .phone-mockup {
  border-color: #f3e8ea;
  background: #3a2e31;
}

body[data-theme="granite"] .phone-mockup {
  border-color: #475569;
  background: #1e293b;
}

@keyframes floatMockup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-screen {
  background: var(--theme-phone-bg);
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.phone-notch {
  width: 35%;
  height: 18px;
  background: #334155;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 11;
  transition: background-color 0.3s ease;
}

body[data-theme="pink"] .phone-notch {
  background: #c28c98;
}

.phone-icons {
  display: flex;
  gap: 4px;
}

/* Phone App Containers & Screen Transitions */
.phone-app-body {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mock-screen {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 8px 12px;
  height: 100%;
  overflow-y: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.mock-screen.active {
  display: flex;
  animation: slideInScreen 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInScreen {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.app-user-info h4 {
  font-size: 14px;
  color: var(--theme-text-dark);
  font-weight: 800;
  transition: color 0.3s ease;
}

.app-user-info p {
  font-size: 10px;
  color: var(--theme-text);
  margin: 0;
  transition: color 0.3s ease;
}

.app-avatar {
  width: 30px;
  height: 30px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

/* Habit Card (Interactive Mockup) */
.mock-stats-card, .mock-habit-card, .mock-custom-card {
  background: var(--theme-surface);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--theme-shadow);
  border: 1px solid var(--theme-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.habit-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.habit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.habit-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 12px;
}

.habit-streak-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  padding: 2px 6px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.habit-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.day-name {
  font-size: 8px;
  color: var(--theme-text);
  font-weight: 600;
}

.day-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  transition: all 0.3s ease;
  font-weight: 700;
  background: transparent;
}

.day-circle.done {
  background: #10b981;
  border-color: #10b981;
  color: var(--white);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

.day-circle.today {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  cursor: pointer;
}

.day-circle.today.clicked {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: var(--white) !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
  animation: completePop 0.4s ease forwards;
}

/* Water Logger Design */
.water-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.water-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.water-icon {
  font-size: 1.3rem;
  animation: floatWater 3s ease-in-out infinite;
}

@keyframes floatWater {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.water-meta h5 {
  font-size: 12px;
  color: var(--theme-text-dark);
  font-weight: 700;
}

.water-meta p {
  font-size: 10px;
  color: var(--theme-text);
}

.water-btn-add {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.water-btn-add:hover {
  background: #0ea5e9;
  color: var(--white);
}

/* Stats Ring Widget */
.stat-ring-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(var(--theme-primary) 75%, var(--theme-border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-ring-inner {
  width: 25px;
  height: 25px;
  background: var(--theme-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: var(--theme-text-dark);
}

.stat-meta h5 {
  font-size: 11px;
  color: var(--theme-text-dark);
  font-weight: 700;
}

.stat-meta p {
  font-size: 9px;
  color: var(--theme-text);
}

/* AI Coach Tab Chat Design */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 4px;
  max-height: 340px;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.4;
  animation: chatPopup 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatPopup {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.ai {
  align-self: flex-start;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-dark);
  border-bottom-left-radius: 3px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--theme-primary);
  color: var(--white);
  border-bottom-right-radius: 3px;
}

.typing-indicator {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 8px 12px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  background: var(--theme-text);
  border-radius: 50%;
  animation: bounceDot 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
  border-top: 1px solid var(--theme-border);
}

.chat-preset-btn {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-dark);
  font-size: 9.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-preset-btn:hover {
  background: var(--theme-primary);
  color: var(--white);
  border-color: var(--theme-primary);
}

/* Phone Screenshot Slideshow Slider */
/* Phone Screenshot Image */
.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

/* Challenges Tab Design */
.challenge-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.challenge-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-text-dark);
}

.challenge-category {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(14, 21, 82, 0.05);
  color: var(--theme-text-dark);
}

.challenge-bar-container {
  height: 6px;
  background: var(--theme-border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.challenge-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-primary), #10b981);
  border-radius: 3px;
}

.challenge-progress-text {
  font-size: 9px;
  color: var(--theme-text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* Consistency Heatmap Grid */
.heatmap-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.heatmap-card h5 {
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-text-dark);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.heatmap-box {
  aspect-ratio: 1;
  background: var(--theme-border);
  border-radius: 3px;
  transition: transform 0.2s ease;
}

.heatmap-box:hover {
  transform: scale(1.15);
}

.heatmap-box.lvl-1 { background: #d1fae5; }
.heatmap-box.lvl-2 { background: #34d399; }
.heatmap-box.lvl-3 { background: #059669; }
.heatmap-box.lvl-4 { background: #064e3b; }

/* Stats & League Dashboard */
.league-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(253, 185, 12, 0.08) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.league-info h5 {
  font-size: 11.5px;
  font-weight: 800;
  color: #b45309;
}

.league-info p {
  font-size: 9px;
  color: #d97706;
  font-weight: 600;
}

.league-badge {
  font-size: 1.4rem;
  animation: shineBadge 4s linear infinite alternate;
}

@keyframes shineBadge {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(-5deg); }
}

/* Achievements 3D Flip Card System */
.achievements-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-text-dark);
  margin-top: 4px;
}

.achievements-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.achievement-card-wrapper {
  perspective: 600px;
  height: 86px;
  cursor: pointer;
}

.achievement-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.achievement-card-wrapper.flipped .achievement-card-inner {
  transform: rotateY(180deg);
}

.achievement-front, .achievement-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}

.achievement-front {
  background: var(--theme-surface);
  color: var(--theme-text-dark);
}

.achievement-front span {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.achievement-front h6 {
  font-size: 8px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--theme-text-dark);
}

.achievement-front p {
  font-size: 7px;
  color: var(--theme-text);
  margin-top: 2px;
}

.achievement-back {
  background: var(--theme-primary);
  color: var(--white);
  transform: rotateY(180deg);
  font-size: 7.5px;
  line-height: 1.25;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mockup Phone Navigation Bar */
.phone-nav {
  height: 52px;
  border-top: 1px solid var(--theme-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--theme-surface);
  transition: all 0.3s ease;
  z-index: 15;
}

.phone-nav-item {
  color: var(--theme-text);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 2px;
  font-weight: 700;
  padding: 4px;
}

.phone-nav-item span:first-child {
  font-size: 16px;
}

.phone-nav-item span:last-child {
  font-size: 7px;
}

.phone-nav-item.active {
  color: var(--theme-primary);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--theme-bg);
  transition: background-color 0.3s ease;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--theme-text-dark);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.section-header p {
  color: var(--theme-text);
  transition: color 0.3s ease;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--theme-surface);
  border-radius: var(--radius);
  padding: 40px 30px;
  transition: all 0.3s ease;
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--theme-primary);
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.feature-icon-wrap.purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.feature-icon-wrap.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-icon-wrap.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.feature-icon-wrap.blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.feature-icon-wrap.sky { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.feature-icon-wrap.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--theme-text-dark);
  margin-bottom: 12px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--theme-text);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Privacy Section Banner on Landing Page */
.privacy-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--theme-primary) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  margin-bottom: 100px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.privacy-banner::after {
  content: '🔒';
  position: absolute;
  right: 5%;
  bottom: -10px;
  font-size: 12rem;
  opacity: 0.06;
  pointer-events: none;
}

.privacy-banner-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.privacy-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.privacy-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

.privacy-banner .btn {
  background: var(--white);
  color: var(--theme-text-dark);
}

.privacy-banner .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: var(--theme-bg);
  transition: background-color 0.3s ease;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--theme-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 24px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.step-item h3 {
  font-size: 1.25rem;
  color: var(--theme-text-dark);
  margin-bottom: 12px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.step-item p {
  font-size: 0.95rem;
  color: var(--theme-text);
  max-width: 280px;
  margin: 0 auto;
  transition: color 0.3s ease;
}

/* Privacy Page Content Layout */
.privacy-page {
  padding: 140px 0 80px;
  background: var(--bg-light);
}

.privacy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.privacy-card h1 {
  font-size: 2.4rem;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.privacy-date {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(14, 21, 82, 0.08);
  font-weight: 600;
}

.privacy-card h2 {
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 700;
  margin: 36px 0 16px;
}

.privacy-card p {
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.8;
}

.privacy-card ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style: disc;
}

.privacy-card li {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.7;
}

.privacy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 30px;
}

.privacy-back-link:hover {
  transform: translateX(-4px);
}

/* Footer Section */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 8px 0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

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

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

  .download-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    border-top: 1px solid rgba(14, 21, 82, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header .btn-primary {
    display: none;
  }

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

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

  .privacy-card {
    padding: 32px 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
