/* ==========================================================================
   Sefload - Ultra Modern UI, Glassmorphism & Mobile UX Stylesheet
   %101 Mobil Uyumlu • Command Palette • Bottom Navigation • Audio FX
   ========================================================================== */

/* Yazı tipleri sistem yığını — Google Fonts isteği yok (gizlilik) */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #080b11;
  --bg-secondary: #0f1420;
  --bg-tertiary: #161d2e;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(28, 38, 60, 0.88);
  --bg-glass: rgba(15, 20, 32, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(56, 189, 248, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  --accent-glow: 0 8px 20px rgba(37, 99, 235, 0.25);
  --emerald-glow: 0 0 25px rgba(16, 185, 129, 0.4);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-main: "Plus Jakarta Sans", "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "ui-monospace", "SFMono-Regular", Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --border-glow: rgba(99, 102, 241, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #2563eb;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ==========================================================================
   Base & Touch Optimization
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 70px; /* Safe padding for mobile bottom bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Desktop Cursor Glow Follower */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s ease-out, opacity 0.3s ease;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    display: block;
  }
}

/* Background Atmosphere */
.bg-atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  transition: opacity 0.5s ease;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-2 {
  width: 550px;
  height: 550px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
}

.glow-3 {
  width: 700px;
  height: 700px;
  bottom: -200px;
  left: 20%;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Surface */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.9);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  background: #0B1220;
}

.brand-word {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.logo-icon-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.brand-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.btn-icon.active-sound {
  color: var(--accent-secondary);
  border-color: rgba(6, 182, 212, 0.4);
}

/* Command Palette Trigger Button */
.btn-cmd-k {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.cmd-key-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-kvkk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-kvkk-badge:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (iOS / Native App UX)
   ========================================================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  flex: 1;
}

.bottom-nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:active {
  color: var(--accent-secondary);
}

.bottom-nav-item:active i {
  transform: scale(0.9);
}

/* Floating Center Action on Bottom Nav */
.bottom-nav-center-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow);
  margin-top: -16px;
  border: 3px solid var(--bg-primary);
  transition: transform 0.2s ease;
}

.bottom-nav-center-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Live Statistics & Performance Strip
   ========================================================================== */

.stats-strip {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-strip-card {
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.stat-strip-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.6;
}

.stat-strip-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-strip-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 2.5rem 0 1.5rem 0;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  margin-bottom: 1.25rem;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

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

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

@media (max-width: 992px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero Canvas Core */
.hero-canvas-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at center, rgba(16, 24, 48, 0.8) 0%, rgba(8, 11, 17, 0.95) 100%);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-canvas-container {
    height: 260px;
  }
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.canvas-overlay-content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  padding: 1.25rem;
  background: rgba(15, 20, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  max-width: 320px;
  transition: all 0.3s ease;
}

.canvas-icon-pulse {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  animation: float 3s ease-in-out infinite;
}

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

.canvas-overlay-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.canvas-overlay-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-canvas-container.dragover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.5);
}

.hero-canvas-container.dragover .canvas-overlay-content {
  border-color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.2);
  transform: scale(1.05);
}

/* Privacy Highlights */
.privacy-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .privacy-pills-row {
    justify-content: center;
  }
}

.privacy-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.privacy-item i {
  color: var(--success);
}

/* ==========================================================================
   AdSense Placement Containers
   ========================================================================== */

.ad-wrapper {
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-banner-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: rgba(15, 20, 32, 0.4);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ad-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ad-banner-slot:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(15, 20, 32, 0.6);
}

.ad-placeholder-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* ==========================================================================
   Controls Section (Search & Filter Tabs)
   ========================================================================== */

.controls-section {
  margin: 1.5rem 0;
}

.controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 3rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: var(--bg-card-hover);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   Bento Grid Tools
   ========================================================================== */

.tools-section {
  padding: 1rem 0 3rem 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

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

.tool-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.tool-card:active {
  transform: scale(0.98);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.tool-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.3s ease;
}

.tool-card:hover .tool-icon-wrapper {
  background: #2563eb;
  color: #ffffff;
}

.tool-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tool-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.tool-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.tool-badge-privacy {
  font-size: 0.72rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.tool-action-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-action-link {
  transform: translateX(4px);
}

/* ==========================================================================
   Tool Workspace Modal / Mobile Bottom Sheet
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-window {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: scale(1);
}

/* Mobile Bottom Sheet Transform */
@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-window {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

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

.modal-drag-handle {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
  margin: 0.5rem auto 0 auto;
  display: none;
}

@media (max-width: 640px) {
  .modal-drag-handle {
    display: block;
  }
}

.modal-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.modal-title-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-title-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Command Palette (Ctrl + K) UX Menu
   ========================================================================== */

.command-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.25rem 1.25rem 1.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.command-palette-backdrop.active {
  display: flex;
  opacity: 1;
}

.command-palette-box {
  width: 100%;
  max-width: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.command-palette-backdrop.active .command-palette-box {
  transform: translateY(0);
}

.cmd-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-family: inherit;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateX(3px);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cmd-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ==========================================================================
   Tool Workflows & Elements
   ========================================================================== */

.file-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.25rem;
  text-align: center;
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.01);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
  animation: float 3s ease-in-out infinite;
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.dropzone-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn-upload {
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-action-primary {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: var(--accent-glow);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-action-primary:hover {
  filter: brightness(1.05);
}
.btn-action-primary:disabled {
  filter: none;
  box-shadow: none;
}
label.flex.items-start {
  user-select: none;
}

/* Tool Controls Grid */
.tool-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin: 1.25rem 0;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.control-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-value-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
}

.input-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-primary);
}

.custom-select,
.custom-input {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.custom-select:focus,
.custom-input:focus {
  border-color: var(--accent-primary);
}

/* Comparison Preview */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

@media (max-width: 650px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }
}

.preview-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.preview-media-container {
  max-height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0.6rem 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.preview-media-container img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.preview-stats {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Signature Canvas */
.signature-canvas-box {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

#signaturePad {
  display: block;
  width: 100%;
  height: 250px;
  cursor: crosshair;
}

/* Diff Checker */
.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

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

.diff-textarea {
  width: 100%;
  height: 170px;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
}

.diff-output-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 120px;
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.diff-add {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

.diff-remove {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  text-decoration: line-through;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

@media (min-width: 769px) {
  .toast-container {
    bottom: 2rem;
    right: 2rem;
  }
}

.toast {
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

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

/* Cookie / tercih çubuğu */
.consent-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 84px;
  z-index: 80;
  display: none;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.consent-bar.visible { display: flex; }
@media (min-width: 769px) {
  .consent-bar { bottom: 1.25rem; max-width: 820px; margin: 0 auto; left: 0; right: 0; }
}
.consent-bar p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }
.consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }

/* Rıza tercihleri eşit görsel ağırlıkta olmalı: kabul ve ret aynı boyut/kontrast/sırada. */
.consent-actions .btn-consent {
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.consent-actions .btn-consent-decline {
  background: transparent;
  border-color: var(--border-subtle, rgba(255,255,255,0.18));
  color: var(--text-primary);
}
.consent-actions .btn-consent-decline:hover {
  border-color: var(--text-accent, #818cf8);
}
.consent-actions .btn-consent-accept {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--accent-glow);
}
.consent-actions .btn-consent-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Hukuki metin */
.legal-prose h4 { margin-top: 0.75rem; }
.legal-prose p, .legal-prose li { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.65; }
.legal-prose ul { padding-left: 1.1rem; margin: 0.4rem 0 0.8rem; }
.legal-notice {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Sorumluluk onayı (işlem öncesi) */
.disclaimer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.disclaimer-backdrop.visible {
  display: flex;
}
.disclaimer-card {
  width: 100%;
  max-width: 420px;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: var(--radius-xl, 18px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(0,0,0,.45));
}
.disclaimer-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-accent, #818cf8);
  font-size: 1.1rem;
}
.disclaimer-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}
.disclaimer-lead {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.disclaimer-points {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
}
.disclaimer-points li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.28rem;
}
.disclaimer-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 0.55rem;
}
.disclaimer-check.muted {
  color: var(--text-muted, var(--text-secondary));
  font-size: 0.78rem;
}
.disclaimer-check input {
  margin-top: 0.15rem;
  accent-color: #6366f1;
  flex-shrink: 0;
}
.disclaimer-check a {
  color: var(--text-accent);
  text-decoration: underline;
}
.disclaimer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.disclaimer-actions .btn-consent-accept:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
@media (max-width: 640px) {
  .disclaimer-backdrop { align-items: flex-end; padding: 0; }
  .disclaimer-card {
    max-width: none;
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .container {
    padding: 0 0.85rem;
  }
  .header-inner {
    height: 56px;
    gap: 0.4rem;
  }
  .brand-logo {
    font-size: 1.05rem;
    gap: 0.45rem;
    min-width: 0;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .header-actions {
    gap: 0.3rem;
  }
  .header-actions .btn-icon {
    width: 36px;
    height: 36px;
  }
  .phone-share-trigger,
  .btn-cmd-k {
    display: none !important;
  }
  .btn-kvkk-badge span {
    display: none !important;
  }
  .hero-section {
    padding: 1.1rem 0 0.75rem;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.7rem;
  }
  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
  }
  .privacy-pills-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .privacy-item {
    font-size: 0.75rem;
  }
  .hero-canvas-container {
    height: 180px;
  }
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .stat-strip-num {
    font-size: 1.2rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .tool-card {
    padding: 1rem;
  }
  .ad-wrapper {
    margin-left: 0;
    margin-right: 0;
  }
  .ad-banner-slot {
    min-height: 0;
    padding: 0.5rem;
  }
  .modal-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .modal-window {
    max-width: 100%;
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    transform: none;
  }
  .modal-backdrop.active .modal-window {
    transform: none;
  }
  .modal-header {
    padding: 0.75rem 0.85rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }
  .modal-body {
    padding: 0.85rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .modal-title-text h3 {
    font-size: 1rem;
  }
  .tool-controls-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .comparison-container,
  .diff-container {
    grid-template-columns: 1fr;
  }
  .signature-canvas-box,
  #signaturePad {
    width: 100% !important;
    max-width: 100%;
  }
  .custom-select,
  .custom-input,
  .diff-textarea,
  textarea.custom-input {
    font-size: 16px;
  }
  .consent-bar {
    left: 0.6rem;
    right: 0.6rem;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    padding: 0.85rem;
  }
  .consent-actions {
    width: 100%;
  }
  .consent-actions button {
    flex: 1;
  }
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: auto;
    min-height: 58px;
  }
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }
  .btn-action-primary {
    min-height: 48px;
  }
}

/* ==========================================================================
   Premium Animated Landing Atmosphere
   ========================================================================== */
.visual-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(99,102,241,.16), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(6,182,212,.13), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(59,130,246,.08), transparent 35%);
}

.visual-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,11,17,.05) 0%, rgba(8,11,17,.22) 100%);
}

.ambient-grid {
  position: absolute;
  inset: -10%;
  opacity: .24;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(700px) rotateX(60deg) scale(1.5) translateY(12%);
  transform-origin: center bottom;
  animation: ambientGridMove 18s linear infinite;
}

.ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .42;
  will-change: transform;
}

.ambient-orb-a { width: 340px; height: 340px; left: -90px; top: 8%; background: radial-gradient(circle, rgba(99,102,241,.28), transparent 70%); animation: ambientFloatA 11s ease-in-out infinite; }
.ambient-orb-b { width: 420px; height: 420px; right: -140px; top: 28%; background: radial-gradient(circle, rgba(6,182,212,.22), transparent 70%); animation: ambientFloatB 14s ease-in-out infinite; }
.ambient-orb-c { width: 300px; height: 300px; left: 38%; bottom: -140px; background: radial-gradient(circle, rgba(59,130,246,.17), transparent 72%); animation: ambientFloatC 16s ease-in-out infinite; }

.ambient-stars {
  position: absolute;
  inset: 0;
  opacity: .65;
  background-image:
    radial-gradient(circle at 12% 24%, rgba(255,255,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 24% 71%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 47% 18%, rgba(255,255,255,.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 87% 34%, rgba(255,255,255,.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 88%, rgba(255,255,255,.3) 0 1px, transparent 1.5px);
  background-size: 240px 240px, 310px 310px, 280px 280px, 340px 340px, 300px 300px, 360px 360px;
  animation: ambientTwinkle 7s ease-in-out infinite alternate;
}

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

.hero-content {
  animation: heroReveal .9s cubic-bezier(.2,.8,.2,1) both;
}

.hero-canvas-container {
  min-height: 400px;
  border-color: rgba(129,140,248,.25);
  background:
    radial-gradient(circle at 50% 45%, rgba(99,102,241,.16), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,.08), transparent 64%),
    rgba(8,11,17,.72);
  box-shadow:
    0 25px 80px rgba(0,0,0,.44),
    0 0 70px rgba(99,102,241,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
  animation: heroCanvasReveal 1s .15s cubic-bezier(.2,.8,.2,1) both;
}

.hero-canvas-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,.55), transparent 35%, rgba(6,182,212,.3), transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}

.canvas-overlay-content {
  box-shadow: 0 14px 50px rgba(0,0,0,.22);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.15rem;
  padding: .42rem .8rem;
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 999px;
  background: rgba(15,20,32,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 14px rgba(34,211,238,.85); animation: statusPulse 1.8s ease-in-out infinite; }
.hero-eyebrow-line { width: 28px; height: 1px; background: linear-gradient(90deg, rgba(99,102,241,.85), transparent); }

.hero-title {
  max-width: 760px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero-title-highlight {
  background: linear-gradient(100deg, #ffffff 0%, #a5b4fc 42%, #67e8f9 86%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 650px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}

.hero-primary-cta, .hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .72rem 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.hero-primary-cta {
  color: white;
  background: linear-gradient(135deg, #6366f1, #2563eb 65%, #0891b2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 28px rgba(37,99,235,.28);
}

.hero-secondary-cta {
  color: var(--text-primary);
  background: rgba(15,20,32,.56);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-primary-cta:hover, .hero-secondary-cta:hover { transform: translateY(-3px); }
.hero-primary-cta:hover { box-shadow: 0 16px 34px rgba(37,99,235,.36); }
.hero-secondary-cta:hover { border-color: rgba(99,102,241,.34); background: rgba(28,38,60,.62); }

.tools-section {
  position: relative;
}

.tools-grid > * {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.tools-grid > *:hover {
  transform: translateY(-6px);
}

@keyframes ambientGridMove { 0% { transform: perspective(700px) rotateX(60deg) scale(1.5) translateY(12%); } 100% { transform: perspective(700px) rotateX(60deg) scale(1.5) translateY(17%); } }
@keyframes ambientFloatA { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(70px,40px,0) scale(1.12); } }
@keyframes ambientFloatB { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-80px,-35px,0) scale(1.1); } }
@keyframes ambientFloatC { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(50px,-50px,0) scale(1.08); } }
@keyframes ambientTwinkle { from { opacity: .38; transform: translateY(0); } to { opacity: .78; transform: translateY(-6px); } }
@keyframes heroReveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroCanvasReveal { from { opacity: 0; transform: translateX(22px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes statusPulse { 0%,100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.35); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .visual-ambient *, .hero-content, .hero-canvas-container, .hero-eyebrow-dot { animation: none !important; }
  .hero-primary-cta, .hero-secondary-cta, .tools-grid > * { transition: none !important; }
}

@media (max-width: 992px) {
  .hero-section { padding-top: 3.5rem; }
  .hero-title { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
}

@media (max-width: 640px) {
  .hero-section { padding-top: 2.6rem; }
  .hero-eyebrow { font-size: .7rem; }
  .hero-title { font-size: 2.3rem; letter-spacing: -.045em; }
  .hero-description { font-size: .98rem; }
  .hero-primary-cta, .hero-secondary-cta { width: 100%; }
  .hero-canvas-container { min-height: 300px; }
  .ambient-grid { opacity: .16; }
}
