/* ============================================
   SatRyn Bitcoin Wallet — Global Styles
   Apple-Inspired Design System
   ============================================ */

/* --- CSS Variables (Lights Out — default, pure black) --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #101010;
  --bg-tertiary: #1d1d1f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #6e6e73;
  --accent: #e8531e;
  --accent-hover: #ff6b3d;
  --accent-glow: rgba(232, 83, 30, 0.2);
  --accent-subtle: rgba(232, 83, 30, 0.08);
  --gradient-accent: linear-gradient(135deg, #e8531e, #f2854e);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #101010 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(232, 83, 30, 0.08);
  --btn-primary-text: #fff;
  --header-scrolled-bg: rgba(0, 0, 0, 0.72);
  --dropdown-bg: rgba(16, 16, 16, 0.96);
  --mobile-menu-bg: rgba(0, 0, 0, 0.98);
  --phone-mockup-bg: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  --phone-screen-bg: linear-gradient(180deg, #0a0a0a, #111);
  --phone-notch-bg: #000;
  --phone-border: rgba(255, 255, 255, 0.1);
  --card-shimmer: rgba(255, 255, 255, 0.06);
  --form-bg: rgba(255, 255, 255, 0.04);
  --select-option-bg: #111;
  --select-option-color: #fff;
  --code-success: #34d399;
  --code-error: #fb7185;
  --cta-bg: linear-gradient(145deg, rgba(232, 83, 30, 0.05), rgba(232, 83, 30, 0.01));
  --cta-border: rgba(232, 83, 30, 0.1);
  --cta-glow: rgba(232, 83, 30, 0.05);
  --scrollbar-thumb: rgba(255, 255, 255, 0.08);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.16);
  --apple-blue: #2997ff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 1080px;
  --header-height: 52px;
}

/* --- Dim Mode (dark blue) --- */
[data-theme="dim"] {
  --bg-primary: #15202b;
  --bg-secondary: #192734;
  --bg-tertiary: #1e2d3d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f5f5f7;
  --text-secondary: #8899a6;
  --text-muted: #6e7f8d;
  --accent: #e8531e;
  --accent-hover: #ff6b3d;
  --accent-glow: rgba(232, 83, 30, 0.2);
  --accent-subtle: rgba(232, 83, 30, 0.1);
  --gradient-accent: linear-gradient(135deg, #e8531e, #f2854e);
  --gradient-dark: linear-gradient(180deg, #15202b 0%, #192734 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(232, 83, 30, 0.08);
  --btn-primary-text: #fff;
  --header-scrolled-bg: rgba(21, 32, 43, 0.72);
  --dropdown-bg: rgba(25, 39, 52, 0.96);
  --mobile-menu-bg: rgba(21, 32, 43, 0.98);
  --phone-mockup-bg: linear-gradient(145deg, #1e2d3d, #15202b);
  --phone-screen-bg: linear-gradient(180deg, #15202b, #192734);
  --phone-notch-bg: #0d1821;
  --phone-border: rgba(255, 255, 255, 0.1);
  --card-shimmer: rgba(255, 255, 255, 0.05);
  --form-bg: rgba(255, 255, 255, 0.04);
  --select-option-bg: #192734;
  --select-option-color: #fff;
  --cta-bg: linear-gradient(145deg, rgba(232, 83, 30, 0.06), rgba(232, 83, 30, 0.02));
  --cta-border: rgba(232, 83, 30, 0.12);
  --cta-glow: rgba(232, 83, 30, 0.05);
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.2);
}

/* --- Light Mode (clean white) --- */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #e8e8ed;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.04);
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(0, 0, 0, 0.1);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --accent: #e8531e;
  --accent-hover: #d04818;
  --accent-glow: rgba(232, 83, 30, 0.12);
  --accent-subtle: rgba(232, 83, 30, 0.06);
  --gradient-accent: linear-gradient(135deg, #e8531e, #f2854e);
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(232, 83, 30, 0.06);
  --btn-primary-text: #fff;
  --header-scrolled-bg: rgba(255, 255, 255, 0.72);
  --dropdown-bg: rgba(255, 255, 255, 0.96);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --phone-mockup-bg: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  --phone-screen-bg: linear-gradient(180deg, #fff, #f5f5f7);
  --phone-notch-bg: #e0e0e0;
  --phone-border: rgba(0, 0, 0, 0.08);
  --card-shimmer: rgba(0, 0, 0, 0.03);
  --form-bg: rgba(0, 0, 0, 0.02);
  --select-option-bg: #fff;
  --select-option-color: #1d1d1f;
  --code-success: #059669;
  --code-error: #e11d48;
  --cta-bg: linear-gradient(145deg, rgba(232, 83, 30, 0.03), rgba(232, 83, 30, 0.01));
  --cta-border: rgba(232, 83, 30, 0.08);
  --cta-glow: rgba(232, 83, 30, 0.03);
  --scrollbar-thumb: rgba(0, 0, 0, 0.1);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: 1.0625rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.section {
  padding: 120px 0;
  position: relative;
}

.section-sm {
  padding: 80px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* --- New utility classes --- */
.text-gradient,
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
}

.bento-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
}

.bento-grid > *:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-grid > *:nth-child(2) {
  grid-column: span 2;
}

/* --- Typography (Apple-scale) --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.5;
}

/* --- Glass Card (Apple-clean) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.glass-card-static {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

/* --- Buttons (Apple pill style) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-text);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

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

.btn-secondary:hover {
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--apple-blue);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  transition: gap var(--transition-fast);
}

.btn-link::after {
  content: '\203A';
  font-size: 1.2em;
  transition: transform var(--transition-fast);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

.btn-link:hover {
  gap: 8px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* --- Grid & Layout --- */
.grid {
  display: grid;
  gap: 20px;
}

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

.flex {
  display: flex;
}

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

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

/* --- Header / Navigation (Apple-slim) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: 1001;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: var(--text-primary);
}

.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--dropdown-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

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

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--mobile-menu-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 1.1rem;
  padding: 14px 16px;
}

.mobile-menu .mobile-dropdown-title {
  font-size: 1.1rem;
  padding: 14px 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mobile-menu .mobile-dropdown-content {
  display: none;
  padding-left: 20px;
}

.mobile-menu .mobile-dropdown-content.active {
  display: block;
}

.mobile-menu .mobile-dropdown-content a {
  display: block;
  padding: 10px 16px;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mobile-menu .mobile-dropdown-content a:hover {
  color: var(--text-primary);
}

/* --- Hero Section (dramatic Apple style) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
}

.hero-bg .glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -200px;
  right: -100px;
  animation: float-slow 25s ease-in-out infinite;
}

.hero-bg .glow-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-subtle), transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float-slow 30s ease-in-out infinite reverse;
}

.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-subtle);
  border: 1px solid rgba(232, 83, 30, 0.12);
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 28px;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
  opacity: 0;
}

.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 580px;
  line-height: 1.5;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
  opacity: 0;
}

.hero-visual {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  z-index: 1;
}

/* --- Phone Mockup (premium shadow, slower float) --- */
.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  background: var(--phone-mockup-bg);
  border-radius: 44px;
  border: 2px solid var(--phone-border);
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 25px 70px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-subtle);
  overflow: hidden;
  animation: float-phone 8s ease-in-out infinite;
}

.phone-screen {
  position: absolute;
  inset: 8px;
  background: var(--phone-screen-bg);
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: var(--phone-notch-bg);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen .wallet-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-top: 10px;
}

.phone-screen .wallet-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.phone-screen .wallet-balance {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-screen .wallet-fiat {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.phone-screen .wallet-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.phone-screen .wallet-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.phone-screen .wallet-action-btn .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.phone-screen .wallet-action-btn span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.phone-screen .tx-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-screen .tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.phone-screen .tx-item .tx-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-screen .tx-item .tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.phone-screen .tx-item .tx-icon.received {
  color: var(--code-success);
}

.phone-screen .tx-item .tx-icon.sent {
  color: var(--code-error);
}

.phone-screen .tx-item .tx-label {
  font-size: 0.78rem;
  font-weight: 500;
}

.phone-screen .tx-item .tx-date {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.phone-screen .tx-item .tx-amount {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
}

.phone-screen .tx-item .tx-amount.positive {
  color: var(--code-success);
}

.phone-screen .tx-item .tx-amount.negative {
  color: var(--code-error);
}

/* --- Feature Cards --- */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-card h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Stats (bigger, bolder) --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 48px 0;
}

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

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- CTA Section (clean Apple style) --- */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-box {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 24px;
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* --- Footer (minimal) --- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 56px 0 28px;
}

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

.footer-brand p {
  margin-top: 14px;
  font-size: 0.84rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

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

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-subtle), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.page-header h1 {
  position: relative;
  margin-bottom: 16px;
}

.page-header p {
  position: relative;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Legal Content --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

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

.legal-content ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  background: var(--form-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* --- Button Small --- */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.84rem;
}

/* --- Details / Summary (FAQ) --- */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary svg {
  transform: rotate(180deg);
}

details[open] > div {
  animation: fadeInUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- Select Dropdown --- */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select.form-input option {
  background: var(--select-option-bg);
  color: var(--select-option-color);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
  margin: 60px 0;
}

/* --- Scroll Animations (Apple-smooth) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Apple-style fade-in & stagger --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* --- Keyframes (smooth, Apple-like) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Page load --- */
body {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- Selection highlight --- */
::selection {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

::-moz-selection {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

/* --- Scrollbar (webkit) --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* --- Focus visible for accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Theme Toggle --- */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 980px;
  padding: 3px;
  z-index: 1001;
}

.theme-toggle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
}

.theme-toggle-btn.active {
  color: var(--text-primary);
  background: var(--accent);
}

[data-theme="light"] .theme-toggle-btn.active {
  color: #fff;
}

/* Smooth body transition for theme switching */
body, body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Override transition on animation elements */
.reveal, .fade-in, .hero h1, .hero-desc, .hero-actions, .hero-badge,
.glow-orb, .phone-mockup {
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light mode specific adjustments */
[data-theme="light"] .glass-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass-card-static {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-icon {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-icon:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--accent-subtle);
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .phone-screen .tx-item {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .phone-screen .tx-item .tx-icon {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-bg .grid-lines {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

[data-theme="light"] .btc-grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
}

/* Mobile theme toggle */
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
}

.mobile-theme-toggle .theme-toggle {
  flex: 0;
}

.mobile-theme-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Bitcoin Grid Background --- */
.btc-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  padding: 44px;
}

.contact-form-header h3 {
  margin-bottom: 6px;
}

.contact-form-header p {
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-submit-btn {
  width: 100%;
  margin-top: 4px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel-card {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-channel-card:hover {
  transform: translateY(-2px);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-channel-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-channel-card p {
  font-size: 0.875rem;
  line-height: 1.55;
}

.contact-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.contact-channel-link:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid > *:nth-child(1) { grid-column: span 2; }
  .bento-grid > *:nth-child(2) { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-desktop,
  .nav-actions { display: none; }

  .mobile-toggle { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .section { padding: 80px 0; }
  .section-sm { padding: 60px 0; }
  .page-header { padding: 120px 0 60px; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.4rem; }

  .stats-row { gap: 40px; }
  .stat-value { font-size: 2.4rem; }

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

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

  .cta-box { padding: 48px 24px; }
  .cta-section { padding: 80px 0; }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .logo-wordmark {
    height: 16px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-channel-card {
    padding: 20px 24px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid > *:nth-child(1),
  .bento-grid > *:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 60px 0; }
  .cta-section { padding: 60px 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .logo-wordmark {
    height: 15px;
  }

  .stat-value { font-size: 2rem; }

  .cta-box { padding: 40px 20px; }

  .glass-card,
  .glass-card-static {
    padding: 28px;
    border-radius: 16px;
  }
}
