:root {
  --bg-obsidian: #09090b;
  --bg-surface: #111114;
  --border-subtle: #27272a;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --accent-amber: #f59e0b;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: #fafafa;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.015em;
}

/* Native Greek typographic polish */
html[lang="el"] h1,
html[lang="el"] h2,
html[lang="el"] h3 {
  letter-spacing: 0;
  line-height: 1.24;
}

html[lang="el"] body {
  letter-spacing: 0.005em;
}

.font-mono-tech {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Keep Greek UI labels proportional and clean */
html[lang="el"] .ui-label {
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* Accessible keyboard focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Subtle engineering grid backdrop */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
}

.hero-glow {
  background: radial-gradient(650px circle at 50% 0%, rgba(16, 185, 129, 0.11), transparent 70%);
}

.card-glass {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.78) 0%, rgba(17, 17, 20, 0.94) 100%);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-glass:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

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

.animate-pulse-dot {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.calc-option {
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.calc-option:hover {
  border-color: #52525b;
  color: #fafafa;
}

.calc-option[aria-checked="true"] {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.14);
  color: #fafafa;
}

.seg-btn[aria-pressed="true"] {
  background-color: #18181b;
  color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}
