/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@600;700&display=swap'); */

/* Local Fonts - Please ensure fonts are in assets/fonts/ */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Poppins fallback or local if available */
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Accessibility Focus Styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

:root {
  --bg: #05070a;
  --bg-alt: #0a0c12;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --accent: #00d1ff;
  /* Modern Light Blue */
  --accent-rgb: 0, 209, 255;
  --accent-2: #007aff;
  /* Deeper Blue */
  --accent-orange: #FF7E47;
  /* Keep orange as secondary */
  --text: #f0f2f5;
  --text-muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --card-radius: 40px;
  --glass: rgba(10, 12, 18, 0.8);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Atmosphere */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

section {
  padding: 120px 6vw;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 80px 6vw;
  }
}

.site-header {
  position: relative;
  overflow: hidden;
}

.site-header.has-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
  border-radius: 0 0 12px 0;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  height: 42px;
}

.logo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Ensure logo is visible on dark */
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a,
.dropbtn {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:hover,
.dropbtn:hover,
.nav a.active {
  color: var(--accent);
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.3s ease;
}

.dropdown.open .dropdown-panel {
  display: flex;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.dropdown-panel a {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.caret {
  font-size: 10px;
  opacity: 0.5;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 80px 6vw;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 20px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 40px;
}

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

.hero-actions {
  display: flex;
  gap: 20px;
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 18px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 10px;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.2);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.4);
  background: #fff;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-card {
  position: relative;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.card-label {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.card-metrics {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.card-metrics span {
  font-size: 13px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 500;
}

.orbit {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--accent);
  animation: orbit-spin 10s linear infinite;
}

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-200px) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) translateY(-200px) rotate(-360deg);
  }
}

.stats {
  padding: 60px 6vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 30px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.3s ease;
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.stat span {
  font-size: 14px;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

.grid {
  display: grid;
  gap: 30px;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.server-card,
.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:hover,
.server-card:hover,
.about-card:hover {
  transform: translateY(-10px);
  background: var(--card-hover);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--accent-rgb), 0.1);
}

.card::before,
.server-card::before,
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: 0.3s;
}

.card:hover::before,
.server-card:hover::before,
.about-card:hover::before {
  opacity: 1;
}

.card h3,
.server-card h3,
.about-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

.card ul {
  display: grid;
  gap: 12px;
}

.card ul li {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.card ul li::before {
  content: "→";
  color: var(--accent);
  font-weight: bold;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
}

.partner-item {
  height: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.partner-item:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.partner-logo {
  max-width: 100%;
  max-height: 50px;
  filter: grayscale(1) brightness(2);
  opacity: 0.6;
  transition: 0.3s;
}

.partner-item:hover .partner-logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

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

.about-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  display: block;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}

.about-card {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 30 px;
  padding: 30px;
}

.pill-row {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.pill {
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* Footer improvements */
.footer {
  padding: 80px 6vw 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

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

.footer h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: #fff;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.legal {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .legal {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }

  .nav.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav a {
    font-size: 24px;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    display: flex;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
    border: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 40px;
  }

  .stats {
    padding-top: 10px;
    grid-template-columns: 1fr 1fr;
  }

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

  .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Partner Section */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  height: 80px;
  width: 140px;
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.partner-logo {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}


/* Password Generator Improvements */
.output-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.output {
  display: flex;
  gap: 12px;
}

.icon-btn {
  padding: 12px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 126, 71, 0.1);
  border-color: var(--accent);
}

.strength-meter {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background: var(--muted);
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
  height: 14px;
}

.controls-grid {
  display: grid;
  gap: 24px;
}

.range-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.3);
}

.range-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: var(--line);
  border-radius: 2px;
}

.options-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Reduced gap */
  cursor: pointer;
  padding: 8px 12px;
  background: rgba(44, 36, 21, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s ease;
  user-select: none;
}

.checkbox-label:hover {
  background: rgba(44, 36, 21, 0.6);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.action-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.action-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.history-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.history-section h3 {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.4);
}

.history-item .pass-text {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item .copied-text {
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.history-item.copied .copied-text {
  opacity: 1;
}