/* =========================
   Reset and Base Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    #1e293b 25%,
    #334155 50%,
    #475569 75%,
    #64748b 100%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}
body {
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-variation-settings: "opsz" 32;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0 2rem;
}
.hero-content .tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content .subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Buttons
   ========================= */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.6);
  border-color: rgba(96, 165, 250, 0.4);
}
.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
}
.btn:disabled,
.btn[disabled] {
  opacity: 1;
  cursor: not-allowed;
  background: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  border-color: #e5e7eb !important;
  filter: grayscale(1);
  transition: background 0.2s, color 0.2s, filter 0.2s;
}

/* =========================
   Sections
   ========================= */
section {
  padding: 3rem 0;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   Features Grid
   ========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: #60a5fa;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #f1f5f9;
}
.feature-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* =========================
   Benefits Section
   ========================= */
.benefits-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.benefits-content p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.benefit-icon {
  width: 2rem;
  height: 2rem;
  color: #34d399;
  flex-shrink: 0;
}
.benefit-icon svg {
  width: 100%;
  height: 100%;
}
.benefit-item span {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.5;
}
.benefits-content strong {
  color: #f1f5f9;
  font-weight: 600;
}
.about-highlight {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 100%
  );
  border-left: 4px solid #60a5fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

/* =========================
   Contact Section
   ========================= */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}
.contact-content p {
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* =========================
   Footer
   ========================= */
footer {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(30, 41, 59, 0.8) 100%
  );
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
}
footer p {
  color: #94a3b8;
}
footer a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #93c5fd;
  text-decoration: underline;
}
.social-links {
  margin-top: 0.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.linkedin-link,
.github-link {
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.linkedin-link:hover,
.github-link:hover {
  color: #93c5fd;
  transform: translateY(-1px);
  text-decoration: none;
}
.linkedin-link svg,
.github-link svg {
  transition: transform 0.3s ease;
}
.linkedin-link:hover svg,
.github-link:hover svg {
  transform: scale(1.1);
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 0 0 2rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  .benefit-item {
    gap: 0.75rem;
  }
  .benefit-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  .benefit-item span {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-content .tagline {
    font-size: 1.25rem;
  }
  .hero-content .subtitle {
    font-size: 1.1rem;
  }
}
@media (min-width: 769px) {
  .hero {
    min-height: 50vh;
  }
}

/* =========================
   Animations
   ========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* =========================
   Animated Gradients
   ========================= */
.yearly-animated-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 60%, #f59e0b 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: yearlyGradientShift 3s ease-in-out infinite;
}
@keyframes yearlyGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.savings-animated-gradient {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #3b82f6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: savingsGradientShift 3s ease-in-out infinite;
}
@keyframes savingsGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =========================
   404 Error Page
   ========================= */
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 25%,
    #334155 50%,
    #475569 75%,
    #64748b 100%
  );
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #0f172a 0%,
      #1e293b 25%,
      #334155 50%,
      #475569 75%,
      #64748b 100%
    );
}
.error-content {
  max-width: 600px;
}
.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #3b82f6 0%,
    #8b5cf6 20%,
    #ef4444 40%,
    #f59e0b 60%,
    #10b981 80%,
    #3b82f6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
}
.error-message {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-icon {
  width: 4rem;
  height: 4rem;
  color: #60a5fa;
  margin: 0 auto 1rem;
}
@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }
  .error-title {
    font-size: 1.5rem;
  }
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* =========================
   Cost Calculator Form
   ========================= */
#cost-calc-form input[type="number"]::-webkit-inner-spin-button,
#cost-calc-form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#cost-calc-form input[type="number"] {
  -moz-appearance: textfield;
}

/* =========================
   Deployment Frequency Tabs
   ========================= */
.tab-group {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 0.5rem;
}
.tab-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  height: 48px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, color 0.2s;
  border-radius: 0;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .tab-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
  }
}
.tab-btn:not(:first-child) {
  border-left: none;
}
.tab-btn:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.tab-btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.tab-btn.active,
.tab-btn:focus {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  color: #fff;
  border-color: #60a5fa;
  outline: none;
}
.tab-btn:hover:not(.active) {
  background: #e0e7ef;
  color: #1e293b;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-unit input[type="number"] {
  padding-right: 3.5rem;
}
.input-unit {
  position: absolute;
  right: 1.1rem;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
  background: transparent;
  font-weight: 500;
}

.spegel-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #60a5fa;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.spegel-link:hover,
.spegel-link:focus {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  outline: none;
}

.mt-hero {
  margin-top: 5rem;
}
.subtitle-large {
  margin-bottom: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.calc-form-wrapper {
  max-width: 500px;
  margin: 2.5rem auto 0 auto;
}
.calc-form {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px 0 rgba(60, 72, 88, 0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-top: 0;
}
.mb-1-25 {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
  text-align: left;
}
.input-full {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f9fafb;
  transition: border 0.2s;
}
.select-provider {
  color: #1e293b;
}
.btn-block {
  width: 100%;
  display: block;
  box-sizing: border-box;
}
.mt-0-5 {
  margin-top: 0.5rem;
}
.calc-result-wrapper {
  margin-top: 2rem;
  display: none;
}
.result-yearly {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.result-savings {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: none;
}
.mt-2 {
  margin-top: 2rem;
}
.prisma-savings-text {
  color: #f1f5f9;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.prisma-savings-strong {
  font-weight: 700;
}
.maxw-320 {
  max-width: 320px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.d-block {
  display: block;
}

/* Info Button and Tooltip for Cost Calculator */
.info-btn {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 1em;
  margin-left: 0.3em;
  position: relative;
  padding: 0;
  vertical-align: middle;
}
.info-btn i[data-lucide] {
  font-size: 0.65em;
  line-height: 1;
  vertical-align: text-bottom;
}
.info-btn:focus .tooltip-text,
.info-btn:hover .tooltip-text {
  opacity: 1;
  pointer-events: auto;
}
.tooltip-text {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 0.4em;
  font-size: 0.95em;
  min-width: 200px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: normal;
  text-align: left;
}
.tooltip-text div {
  margin-bottom: 0.5em;
}
.tooltip-text div:last-child {
  margin-bottom: 0;
}
.info-btn:focus {
  outline: 2px solid #3b82f6;
}

#data-transfer-type-tabs .tab-btn {
  white-space: normal;
  font-size: clamp(0.8em, 3vw, 1em);
  min-width: 80px;
  padding: 0.5em 0.7em;
}

.gradient-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    #3b82f6 0%,
    #8b5cf6 20%,
    #ef4444 40%,
    #f59e0b 60%,
    #10b981 80%,
    #3b82f6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  text-align: center;
}
.gradient-title + .subtitle,
.subtitle.subtitle-large {
  text-align: center;
}

@media (max-width: 500px) {
  .calc-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .btn-block {
    width: 100%;
    max-width: 100%;
  }
}
