/* ============================================
   SUCHARIA.COM — Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Dark Theme (default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #606078;
  --accent-1: #6c5ce7;
  --accent-2: #a855f7;
  --accent-3: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4);
  --accent-gradient-2: linear-gradient(135deg, #f43f5e, #ec4899, #a855f7);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h: 64px;
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-input: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #999;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.08);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-3);
}

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

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

input,
textarea,
select {
  font-family: inherit;
}

/* --- Background Animation --- */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, #6c5ce7 0%, transparent 70%);
  animation-duration: 25s;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  top: 50%;
  right: -150px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -5s;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(80px, -60px) scale(1.1);
  }

  66% {
    transform: translate(-40px, 40px) scale(0.9);
  }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

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

.logo-icon {
  font-size: 1.6rem;
}

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

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}

.nav-search input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.3rem;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Theme toggle icons */
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

/* --- Main Content --- */
.main-content {
  min-height: calc(100vh - var(--navbar-h) - 100px);
  padding-top: var(--navbar-h);
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

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

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

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

.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Titles --- */
.section {
  padding: 0 24px 60px;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .emoji {
  font-size: 1.4rem;
}

/* --- AI News Feed --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-primary);
}

.news-title a:hover {
  color: var(--accent-2);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.news-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: 160px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.5;
  }
}

/* --- Category Tabs --- */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 24px;
  margin-bottom: 32px;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.cat-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.cat-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* --- Tool Grid --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 24px 60px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tool-card:hover::before {
  opacity: 0.04;
}

.tool-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.tool-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
}

.tool-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-ai {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-free {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* --- Tool Page --- */
.tool-page {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease;
}

.tool-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
  font-size: 1.1rem;
  cursor: pointer;
}

.back-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.tool-page-title {
  font-size: 1.6rem;
  font-weight: 700;
}

/* --- Form Controls --- */
.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

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

.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.input-group {
  margin-bottom: 20px;
}

.select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
}

/* --- Output / Result --- */
.result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 500px;
  overflow-y: auto;
}

.result-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition);
}

.copy-btn:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

/* --- Checkbox / Toggle row --- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-1);
}

.toggle-row label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* --- Slider --- */
input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--bg-card);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}

.range-value {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-left: 12px;
}

/* --- Two column layout for diff --- */
.diff-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .diff-columns {
    grid-template-columns: 1fr;
  }
}

.diff-added {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.diff-removed {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
}

/* --- Color palette display --- */
.color-palette {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: transform var(--transition);
}

.color-swatch:hover {
  transform: scale(1.1);
}

/* --- QR Code --- */
.qr-output {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.qr-output canvas {
  border-radius: var(--radius-md);
}

/* --- Gradient preview --- */
.gradient-preview {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

/* --- Responsive preview frames --- */
.preview-frame {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 20px auto;
  overflow: hidden;
  background: #fff;
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Pomodoro --- */
.pomodoro-display {
  text-align: center;
  padding: 40px;
}

.pomodoro-time {
  font-size: 5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pomodoro-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pomodoro-sessions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pomodoro-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.pomodoro-dot.filled {
  background: var(--accent-gradient);
  border-color: transparent;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

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

.modal-header h2 {
  font-size: 1.2rem;
}

.modal-close {
  font-size: 1.6rem;
  border: none;
  background: none;
  color: var(--text-muted);
}

.modal-body {
  margin-bottom: 24px;
}

.modal-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.75rem;
}

/* --- Toast notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  padding: 14px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Utility classes --- */
.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

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

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

.text-mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
}

/* --- Buttons Large --- */
.btn-lg {
  padding: 15px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* =============================================
   LANDING PAGE STYLES
   ============================================= */

/* Landing Hero */
.landing-hero {
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.landing-h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 4px;
  letter-spacing: -2px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.landing-dot {
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin: 16px auto 12px;
  max-width: 600px;
  animation: fadeInUp 0.7s ease 0.25s both;
}

.landing-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.7s ease 0.35s both;
}

.landing-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease 0.45s both;
}

/* Landing Section */
.landing-section {
  max-width: 1100px;
  margin: 0 auto;
}

/* About Section */
.landing-about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text-primary);
}

.about-text em {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 600;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  position: relative;
}

.about-card-stack {
  position: relative;
  width: 260px;
  height: 280px;
}

.about-floating-card {
  position: absolute;
  padding: 14px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: floatCard 6s ease-in-out infinite;
}

.fc-1 {
  top: 0;
  left: 10px;
  animation-delay: 0s;
}

.fc-2 {
  top: 55px;
  left: 80px;
  animation-delay: -1s;
}

.fc-3 {
  top: 110px;
  left: 20px;
  animation-delay: -2s;
}

.fc-4 {
  top: 165px;
  left: 90px;
  animation-delay: -3s;
}

.fc-5 {
  top: 220px;
  left: 40px;
  animation-delay: -4s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Categories Showcase */
.categories-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cat-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.cat-showcase-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cat-showcase-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cat-showcase-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-showcase-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Bottom CTA */
.landing-bottom-cta {
  text-align: center;
  padding: 80px 24px;
  position: relative;
}

.landing-bottom-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.landing-bottom-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 16px 40px;
  }

  .hero-stats {
    gap: 24px;
  }

  .section {
    padding: 0 16px 40px;
  }

  .tool-grid {
    padding: 0 16px 40px;
    grid-template-columns: 1fr;
  }

  .category-tabs {
    padding: 0 16px;
  }

  .nav-search {
    display: none;
  }

  .navbar-inner {
    padding: 0 16px;
  }

  .tool-page {
    padding: 16px;
  }

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

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

  .landing-hero {
    padding: 80px 16px 60px;
  }

  .landing-h1 {
    letter-spacing: -1px;
  }

  .landing-about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-visual {
    min-height: 240px;
  }

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

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

  .nav-links {
    position: absolute;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

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

@media (max-width: 480px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .pomodoro-time {
    font-size: 3.5rem;
  }

  .categories-showcase {
    grid-template-columns: 1fr;
  }

  .landing-bottom-cta {
    padding: 50px 16px;
  }
}