/* -------------------------------------------------------------
   inkin.space — Static site stylesheet
   Brand family: ragasave (product tier)
   Accent: indigo → violet → fuchsia
------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand gradient */
  --primary-color: #4338ca;
  --primary-hover: #3730a3;
  --primary-light: #6366f1;
  --accent-violet: #7c3aed;
  --accent-fuchsia: #a21caf;
  --gradient-brand: linear-gradient(135deg, #4338ca 0%, #7c3aed 55%, #a21caf 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(67, 56, 202, 0.12) 0%, rgba(162, 28, 175, 0.12) 100%);

  /* Surfaces */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;

  /* Text */
  --text-dark: #0f172a;
  --text-muted: #4a5568;
  --text-light: #ffffff;
  --text-light-muted: #94a3b8;

  /* Lines */
  --border-color: #e2e8f0;
  --border-dark: #334155;

  /* Semantic */
  --green: #34c759;
  --green-bg: rgba(52, 199, 89, 0.15);
  --orange: #ff9500;
  --red: #ff3b30;
  --red-bg: rgba(255, 59, 48, 0.15);
  --blue: #38bdf8;
  --blue-bg: rgba(56, 189, 248, 0.15);

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --header-height: 70px;
  --transition-speed: 0.3s;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(15, 23, 42, 0.015) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--text-dark);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(124, 58, 237, 0.18);
}

/* ==========================================
   Background glow animations
   ========================================== */
@keyframes float-glow-hero {
  0%   { transform: translate(0%, 0%) scale(1) rotate(0deg); }
  33%  { transform: translate(4%, 3%) scale(1.08) rotate(4deg); }
  66%  { transform: translate(-3%, 6%) scale(0.95) rotate(-3deg); }
  100% { transform: translate(0%, 0%) scale(1) rotate(0deg); }
}

@keyframes float-glow-problem {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(-5%, 4%) scale(1.1); }
  100% { transform: translate(0%, 0%) scale(1); }
}

@keyframes float-glow-solution {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(4%, -5%) scale(1.08); }
  100% { transform: translate(0%, 0%) scale(1); }
}

@keyframes float-glow-dark {
  0%   { transform: translate(0%, 0%) scale(1) rotate(0deg); }
  33%  { transform: translate(3%, -4%) scale(1.1) rotate(5deg); }
  66%  { transform: translate(-4%, 3%) scale(0.92) rotate(-5deg); }
  100% { transform: translate(0%, 0%) scale(1) rotate(0deg); }
}

@keyframes float-glow-feedback {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(-2%, -3%) scale(1.08); }
  100% { transform: translate(0%, 0%) scale(1); }
}

/* ==========================================
   1. Header
   ========================================== */
.main-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.header-brand:hover .logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.app-subname {
  font-size: 0.625rem;
  color: #888888;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition-speed);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-btn {
  background: var(--gradient-brand);
  color: var(--text-light) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.22);
  transition: transform 0.15s ease, box-shadow var(--transition-speed);
}

.nav-btn::after {
  display: none;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.32);
}

.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  white-space: nowrap;
}

.hamburger-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  background: none;
  border: none;
  z-index: 1001;
}

/* Mobile drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
  z-index: 1100;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  transform: translateX(100%);
  transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-menu.open {
  transform: translateX(0);
}

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

.mobile-nav-close {
  font-size: 1.5rem;
  color: var(--text-dark);
  background: none;
  border: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
  background: var(--bg-secondary);
}

.mobile-nav-btn {
  background: var(--gradient-brand);
  color: #fff !important;
  text-align: center;
  margin-top: 0.75rem;
  border-bottom: none;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.developed-by {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.developed-by .highlight {
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================
   2. Buttons
   ========================================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.375rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
  transition: transform 0.15s ease, box-shadow var(--transition-speed);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.32);
}

.cta-primary:active {
  transform: scale(0.98);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color var(--transition-speed), background var(--transition-speed);
}

.cta-secondary:hover {
  border-color: #cbd5e1;
  background: var(--bg-secondary);
}

/* ==========================================
   3. Hero
   ========================================== */
.hero-section {
  padding: 4rem 2rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -2;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 18% 78%, rgba(56, 189, 248, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 60% 55%, rgba(162, 28, 175, 0.09) 0%, transparent 40%);
  animation: float-glow-hero 22s infinite ease-in-out;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.06) 1.2px, transparent 1.2px),
    linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3.5rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  min-width: 320px;
  max-width: 560px;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(67, 56, 202, 0.08);
  border: 1px solid rgba(67, 56, 202, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

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

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta ion-icon {
  color: var(--green);
  font-size: 0.9rem;
}

/* --- Hero mockup --- */
.hero-visual {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container {
  width: 100%;
  max-width: 480px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -20px rgba(15, 23, 42, 0.22),
    0 8px 20px -12px rgba(67, 56, 202, 0.25);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mockup-screen {
  display: flex;
  flex-direction: column;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.mock-tool {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.95rem;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.mock-tool.active {
  background: rgba(67, 56, 202, 0.1);
  color: var(--primary-color);
}

.mock-tool-sep {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  margin: 0 4px;
}

.mock-zoom {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.mockup-canvas {
  position: relative;
  background: var(--bg-primary);
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  height: 260px;
  overflow: hidden;
}

.mockup-canvas svg {
  width: 100%;
  height: 100%;
}

.ink-stroke {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: ink-draw 11s ease-in-out infinite;
}

.ink-stroke.s2 { stroke: var(--accent-violet); animation-delay: 0.8s; }
.ink-stroke.s3 { stroke: var(--accent-fuchsia); animation-delay: 1.6s; }
.ink-stroke.s4 { stroke: #0f172a; stroke-width: 2; animation-delay: 2.4s; }

@keyframes ink-draw {
  0%   { stroke-dashoffset: 700; }
  28%  { stroke-dashoffset: 0; }
  78%  { stroke-dashoffset: 0; }
  92%  { stroke-dashoffset: 700; }
  100% { stroke-dashoffset: 700; }
}

.mock-canvas-text {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  fill: #0f172a;
  letter-spacing: -0.3px;
  opacity: 0;
  animation: ink-text 11s ease-in-out infinite;
  animation-delay: 3.2s;
}

@keyframes ink-text {
  0%, 30%  { opacity: 0; }
  45%, 78% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

/* Floating selection bar hint */
.mock-selection-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  animation: bar-float 6s ease-in-out infinite;
}

.mock-selection-bar span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 0.6rem;
}

.mock-selection-bar span:first-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

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

/* ==========================================
   4. Sections
   ========================================== */
.section-divider {
  height: 1px;
  background-color: #f0f0f0;
  margin: 0 2rem;
}

.light-section {
  padding: 4.5rem 2rem;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.light-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -2;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(67, 56, 202, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.14) 0%, transparent 45%);
  animation: float-glow-problem 25s infinite ease-in-out;
  pointer-events: none;
}

.light-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.05) 1.2px, transparent 1.2px),
    linear-gradient(rgba(15, 23, 42, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.01) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
  pointer-events: none;
}

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

.light-section.alt-bg::before {
  background-image:
    radial-gradient(circle at 85% 15%, rgba(52, 199, 89, 0.13) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(124, 58, 237, 0.14) 0%, transparent 45%);
  animation: float-glow-solution 24s infinite ease-in-out;
}

.section-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-main-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2.5rem;
}

.media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.reverse-row {
  flex-direction: row-reverse;
}

.image-column {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.text-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paragraph-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.paragraph-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Illustrated panel used in problem/solution rows */
.illustration {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  padding: 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.3);
}

.illus-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.illustration-title {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #94a3b8;
  padding: 0 0.5rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.35rem;
}

.illus-row + .illus-row {
  border-top: 1px solid #f1f5f9;
}

.illus-row ion-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.illus-row .strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 59, 48, 0.5);
  text-decoration-thickness: 2px;
}

.illus-row .ok {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
}

.illus-row .bad {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-bg);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
}

/* ==========================================
   5. Dark feature section
   ========================================== */
.dark-section {
  background-color: var(--bg-dark);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dark-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -2;
  background-image:
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(162, 28, 175, 0.2) 0%, transparent 50%);
  animation: float-glow-dark 26s infinite ease-in-out;
  pointer-events: none;
}

.dark-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  pointer-events: none;
}

.dark-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.dark-section-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.dark-section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.dark-section-subtitle {
  font-size: 1rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 2;
  position: relative;
  transition:
    transform var(--transition-speed),
    border-color var(--transition-speed),
    box-shadow var(--transition-speed),
    background-color var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.45);
  background-color: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 12px 30px -10px rgba(124, 58, 237, 0.3),
    0 4px 12px -5px rgba(56, 189, 248, 0.15);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background: var(--gradient-brand);
  border-radius: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.feature-icon-box ion-icon {
  font-size: 1.35rem;
  color: var(--text-light);
}

.feature-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

/* ==========================================
   6. Shortcuts
   ========================================== */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.shortcut-group {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  padding: 1.25rem 1.35rem;
}

.shortcut-group h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary-color);
  margin-bottom: 0.9rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.shortcut-row + .shortcut-row {
  border-top: 1px solid #f8fafc;
}

kbd {
  font-family: var(--font-family);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
}

.kbd-group {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}

/* ==========================================
   7. Feedback
   ========================================== */
.feedback-section {
  padding: 5rem 2rem;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feedback-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -2;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
  animation: float-glow-feedback 23s infinite ease-in-out;
  pointer-events: none;
}

.feedback-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: -1.5rem auto 2.5rem;
  line-height: 1.6;
}

.feedback-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.feedback-image-column {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.feedback-form-column {
  flex: 1;
  min-width: 300px;
}

.feedback-form-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.3);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-dark);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.form-submit-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  margin-top: 0.25rem;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
  transition: transform 0.15s ease, box-shadow var(--transition-speed);
}

.form-submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.32);
}

.error-banner {
  background: var(--red-bg);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
}

.success-container {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.success-icon {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.success-message {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.reset-button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.reset-button:hover {
  background: #eef2f7;
}

.hidden {
  display: none !important;
}

/* ==========================================
   8. Footer
   ========================================== */
.footer-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 2rem 1.5rem;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-column-main {
  flex: 1;
  min-width: 260px;
  max-width: 360px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-app-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links-row {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.footer-link-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

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

.footer-legal-divider {
  height: 1px;
  background: var(--border-color);
  max-width: var(--max-width);
  margin: 2.5rem auto 1.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal-copyright {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================
   9. Inner / legal pages
   ========================================== */
.page-hero {
  padding: 3.5rem 2rem 2.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}

.page-lede {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
}

.page-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-body h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.75rem;
}

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

.page-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.page-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.page-body ul,
.page-body ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-body li {
  margin-bottom: 0.4rem;
}

.page-body a {
  color: var(--primary-color);
  font-weight: 600;
}

.page-body a:hover {
  text-decoration: underline;
}

.page-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
}

.callout {
  border-left: 3px solid var(--primary-light);
  background: var(--gradient-brand-soft);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Changelog */
.release {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.release:last-child {
  border-bottom: none;
}

.release-meta {
  flex-shrink: 0;
  width: 130px;
}

.release-version {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(67, 56, 202, 0.08);
  border-radius: 99px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.35rem;
}

.release-date {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

.release-body h3 {
  margin-top: 0;
  font-size: 1rem;
}

.release-body ul {
  margin-bottom: 0;
}

/* ==========================================
   10. Responsive
   ========================================== */
@media (max-width: 900px) {
  .header-nav,
  .header-badges {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .hero-container,
  .media-row,
  .media-row.reverse-row {
    flex-direction: column;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-visual {
    width: 100%;
  }

  .feedback-row {
    gap: 2rem;
  }

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

  .footer-layout {
    flex-direction: column;
  }

  .footer-links-row {
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .main-header {
    padding: 0 1.25rem;
  }

  .hero-section,
  .light-section,
  .dark-section,
  .feedback-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .section-main-title,
  .dark-section-title {
    font-size: 1.6rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .section-divider {
    margin: 0 1.25rem;
  }

  .release {
    flex-direction: column;
    gap: 0.5rem;
  }

  .release-meta {
    width: auto;
  }

  .footer-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .mockup-canvas {
    height: 210px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
