@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-dark: #040810;
  --bg-card: #08101e;
  --bg-card-hover: #0d192e;
  --bg-panel: rgba(8, 16, 30, 0.75);
  
  --cyan-primary: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --cyan-dim: rgba(6, 182, 212, 0.15);
  --cyan-border: rgba(6, 182, 212, 0.3);
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
  --shadow-glow-strong: 0 0 35px rgba(6, 182, 212, 0.45);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
    linear-gradient(rgba(4, 8, 16, 0.95), rgba(4, 8, 16, 0.98));
  min-height: 100vh;
}

/* Background Scanline Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* Base Typography & Custom Selection */
::selection {
  background: var(--cyan-primary);
  color: var(--bg-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  margin-bottom: 1rem;
}

a {
  color: var(--cyan-bright);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--cyan-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cyan-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.logo svg {
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 6px var(--cyan-primary));
}

.logo span {
  color: var(--cyan-bright);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-bright) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  min-height: 48px;
}

.nav-cta:hover {
  background: var(--cyan-primary);
  color: var(--bg-dark) !important;
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--cyan-border);
  color: var(--cyan-bright);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: clamp(8rem, 15vh, 12rem) 0 clamp(4rem, 8vh, 6rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--cyan-border);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-bright);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--cyan-bright);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--cyan-primary);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-height: 48px;
}

.btn-primary:hover {
  background: var(--cyan-bright);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
  color: var(--bg-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-panel);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan-border);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-height: 48px;
}

.btn-secondary:hover {
  border-color: var(--cyan-bright);
  background: var(--cyan-dim);
  color: var(--cyan-bright);
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cyan-border);
  box-shadow: var(--shadow-glow);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--cyan-bright);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}
.hud-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Interactive Terminal Section */
.terminal-section {
  padding: 4rem 0;
}

.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(4, 8, 16, 0.9);
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cyan-border);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-amber); }
.dot.green { background: var(--accent-green); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.terminal-logs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.log-line {
  display: flex;
  gap: 1rem;
}

.log-time { color: var(--text-dim); }
.log-status { color: var(--accent-green); font-weight: 700; }
.log-msg { color: var(--text-main); }

/* Feature / Cyber Indicator Cards Grid */
.features-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--cyan-bright);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.hud-card:hover {
  border-color: var(--cyan-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* DTI Calculator Section */
.calculator-section {
  padding: 5rem 0;
  background: rgba(8, 16, 30, 0.4);
  border-top: 1px solid var(--cyan-border);
  border-bottom: 1px solid var(--cyan-border);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-symbol input, select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  min-height: 48px;
}

.input-with-symbol input:focus, select:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.symbol {
  position: absolute;
  right: 1rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  pointer-events: none;
}

.calc-results {
  background: var(--bg-dark);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
}

.dti-gauge {
  margin: 1.5rem 0;
}

.gauge-val {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--cyan-bright);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.gauge-status {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.status-ok { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); border: 1px solid var(--accent-green); }
.status-warn { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.status-alert { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); border: 1px solid var(--accent-red); }

.calc-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* Detailed Romanian Content Section */
.content-section {
  padding: 6rem 0;
}

.longread-container {
  max-width: 860px;
  margin: 0 auto;
}

.longread-container h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin: 2.5rem 0 1.25rem;
  color: #ffffff;
  border-left: 3px solid var(--cyan-bright);
  padding-left: 1rem;
}

.longread-container h3 {
  font-size: 1.35rem;
  margin: 1.75rem 0 1rem;
  color: var(--cyan-bright);
}

.longread-container p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.longread-container ul, .longread-container ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.longread-container li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.info-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--cyan-bright);
}

/* Contact Page Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item svg {
  color: var(--cyan-bright);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Footer */
.footer {
  background: rgba(4, 8, 16, 0.95);
  border-top: 1px solid var(--cyan-border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  max-width: 380px;
}

.footer-title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Responsive Media Queries */

/* Tablet Layout (< 992px) */
@media (max-width: 992px) {
  .hero-grid,
  .calc-wrapper,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Layout & Header (< 768px) */
@media (max-width: 767.98px) {
  .header {
    padding: 0.6rem 0;
  }

  /* Header mobile container: ONLY Logo left and Hamburger button right */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Mobile Dropdown Menu (Hidden by default, slides down when active) */
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background: rgba(4, 8, 16, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cyan-border);
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    align-items: stretch;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--cyan-dim);
    border-color: var(--cyan-border);
    color: var(--cyan-bright);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    min-height: 48px;
  }

  /* Hero Section Adaptation */
  .hero {
    padding: 5.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
  }

  /* Cyber Terminal Adaptation for Mobile */
  .terminal-section {
    padding: 2rem 0;
  }

  .terminal-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .terminal-title {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terminal-body {
    padding: 1rem 0.75rem;
    font-size: 0.82rem;
  }

  .log-line {
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(6, 182, 212, 0.15);
  }

  .log-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .log-time {
    font-size: 0.75rem;
  }

  .log-status {
    font-size: 0.75rem;
  }

  .log-msg {
    flex: 1 1 100%;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* DTI Calculator Adaptation for Mobile */
  .calculator-section {
    padding: 2.5rem 0;
  }

  .calc-wrapper {
    padding: 1.25rem 1rem;
    gap: 1.5rem;
    border-radius: var(--radius-md);
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .input-with-symbol input, select {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    min-height: 48px;
    padding: 0.75rem 2.5rem 0.75rem 0.85rem;
  }

  select {
    padding-right: 1.5rem;
  }

  .calc-results {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .gauge-val {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .gauge-status {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.3;
  }

  /* Cards Grid & Longread */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hud-card {
    padding: 1.5rem 1.25rem;
  }

  /* Footer Adaptation */
  .footer {
    padding: 3rem 0 2rem;
    margin-top: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    align-items: center;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.25rem 0;
  }
}

/* Extra Small Mobile Devices (375px and down) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  .logo {
    font-size: 0.95rem;
    gap: 0.4rem;
  }

  .logo svg {
    width: 22px;
    height: 22px;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    white-space: normal;
    word-break: break-word;
  }

  .terminal-header {
    justify-content: space-between;
  }

  .terminal-title {
    display: none; /* Hide lengthy text string on tiny screens so dots and status fit cleanly */
  }

  .calc-wrapper {
    padding: 1rem 0.75rem;
  }

  .input-with-symbol input, select {
    padding-left: 0.75rem;
  }

  .gauge-val {
    font-size: 2.25rem;
  }

  .info-box {
    padding: 1rem 0.85rem;
  }
}

