:root{
  color-scheme: dark;
  --bg: #050708;
  --bg-elevated: #0c1014;
  --bg-soft: #11161c;
  --accent: #57ff92;
  --accent-soft: rgba(87, 255, 146, 0.12);
  --accent-border: rgba(87, 255, 146, 0.4);
  --text-main: #f6f7fb;
  --text-muted: #a3a8b5;
  --pill-bg: #121820;
  --border-subtle: #1f2630;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.6);
  --max-width: 1040px;
  --gap:16px;
  --radius:8px;
}

*{
  box-sizing:border-box;
  -webkit-font-smoothing: antialiased;
}

html,body{
  height:100%;
  margin: 0;
  padding: 0;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #101620 0, #050708 55%, #000000 100%);
  color:var(--text-main);
  line-height:1.6;
  padding:0;
  min-height: 100%;
}

/* Page Container */
.page{
  width: 100%;
  max-width: var(--max-width);
  padding: 16px 18px 40px;
  margin: 0 auto;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

@media (min-width: 768px) {
  .page {
    padding: 24px 24px 64px;
  }
}

/* Navbar */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: rgba(6, 9, 12, 0.96);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.nav-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.logo{
  height: 28px;
  width: 28px;
  border-radius:8px;
  display: block;
}

@media (min-width: 768px) {
  .logo {
    height: 32px;
    width: 32px;
  }
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.brand-name{
  font-size:1rem;
  font-weight:600;
  letter-spacing: 0.01em;
  color:var(--text-main);
}

.brand-sub{
  font-size:0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color:var(--text-muted);
}

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

/* Buttons */
.btn{
  display:inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration:none;
  cursor:pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-accent{
  background: var(--accent);
  color: #020304;
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(87, 255, 146, 0.35);
}

.btn-accent:hover{
  transform:translateY(-1px);
  box-shadow: 0 16px 40px rgba(87, 255, 146, 0.45);
}

.btn-ghost{
  background:transparent;
  color:var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover{
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.02);
}

/* Dropdown Menu */
.dropdown{
  position: relative;
  display: inline-block;
}

.dropdown-toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after{
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown.active .dropdown-toggle::after{
  transform: rotate(180deg);
}

.dropdown-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(6, 9, 12, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.dropdown.active .dropdown-menu{
  display: flex;
}

.dropdown-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.dropdown-item:hover{
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

/* Language Switcher */
.language-switcher{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.language-switcher:hover{
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.02);
}

.language-switcher .flag{
  font-size: 1.1rem;
}

/* Hero Section / Content */
.hero{
  flex:1;
  max-width:var(--max-width);
  width:100%;
  margin: 26px auto 0;
  background: radial-gradient(circle at top left, #151d26 0, #0b1016 45%, #050708 100%);
  border-radius: 28px;
  padding: 22px 18px 26px;
  border: 1px solid rgba(73, 90, 110, 0.35);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    margin-top: 34px;
    padding: 30px 28px 32px;
  }
}

/* For index.html with two-column layout */
.hero.hero-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

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

.hero section{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.hero-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: rgba(9, 15, 22, 0.86);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight:500;
  width: fit-content;
}

.hero-label-dot{
  width: 7px;
  height: 7px;
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(87, 255, 146, 0.8);
  animation:pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{opacity:1}
  50%{opacity:0.5}
}

.hero-title{
  font-size: 2rem;
  font-weight:700;
  line-height:1.1;
  margin:0;
  color:var(--text-main);
}

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

.hero-title .highlight{
  color:var(--accent);
}

.hero-subtitle{
  font-size:0.98rem;
  line-height:1.6;
  color:var(--text-muted);
  margin:0;
  max-width: 48rem;
}

.hero-subtitle strong{
  color:var(--text-main);
  font-weight:700;
}

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

.hero-badge-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.pill{
  display:inline-block;
  padding:8px 16px;
  background: var(--pill-bg);
  border:1px solid var(--border-subtle);
  border-radius:999px;
  font-size:0.85rem;
  color:var(--text-main);
}

.pill strong{
  font-weight:700;
}

/* Hero Visual / Mockup */
.hero-visual{
  position:relative;
}

.hero-visual-inner{
  background: rgba(20, 28, 38, 0.6);
  border:1px solid var(--border-subtle);
  border-radius:12px;
  padding:24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.mock-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:1px solid var(--border-subtle);
}

.mock-header-left{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:0.9rem;
  font-weight:600;
  color:var(--text-main);
}

.mock-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
}

.mock-tag{
  font-size:0.8rem;
  padding:4px 12px;
  background: rgba(87, 255, 146, 0.15);
  color: var(--accent);
  border-radius:12px;
  font-weight:600;
}

.mock-body{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.mock-main-text{
  font-size:0.95rem;
  line-height:1.6;
  color:var(--text-muted);
}

.mock-main-text strong{
  font-weight:700;
  color:var(--text-main);
}

.mock-metrics{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:12px;
}

.metric-card{
  background: rgba(10, 15, 20, 0.8);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.metric-label{
  font-size:0.8rem;
  color:var(--text-muted);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.metric-value{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}

.metric-value strong{
  font-size:1.4rem;
  color:var(--accent);
}

.metric-value span{
  font-size:0.85rem;
  color:var(--text-muted);
}

/* Footer */
.footer{
  margin-top: 24px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(32, 40, 52, 0.9);
  color: var(--text-muted);
  font-size: 0.74rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer a{
  color:var(--accent);
  text-decoration:none;
}

.footer a:hover{
  text-decoration:underline;
}

/* Responsive Design */
@media (max-width: 768px){
  .navbar{
    flex-direction:row;
    flex-wrap: nowrap;
    gap:8px;
    padding:10px 12px;
  }
  
  .nav-left{
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  
  .brand-text{
    overflow: hidden;
  }
  
  .brand-name{
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .brand-sub{
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .nav-right{
    flex: 1 1 auto;
    flex-shrink: 0;
    gap: 6px;
    justify-content: flex-end;
  }
  
  .btn{
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  .logo{
    height: 24px;
    width: 24px;
  }
  
  .dropdown-toggle::after{
    display: none;
  }
  
  .hero-title{
    font-size:2rem;
  }
  
  .hero-subtitle{
    font-size:0.95rem;
  }
  
  .mock-metrics{
    grid-template-columns:1fr;
  }
}

/* Content styles for text pages */
h1{ 
  margin-top:0;
  color: var(--text-main);
}

.contact-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:640px;
}

.contact-form label{
  display:flex;
  flex-direction:column;
  font-weight:600;
  gap:6px;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea{
  padding:8px 10px;
  border:1px solid var(--border-subtle);
  border-radius:4px;
  font:inherit;
  background: rgba(20, 28, 38, 0.6);
  color: var(--text-main);
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--accent-border);
}

.form-actions{ 
  display:flex; 
  gap:8px; 
  margin-top:8px;
}

button{
  background: var(--accent);
  color: #020304;
  border:none;
  padding:8px 14px;
  border-radius:4px;
  cursor:pointer;
  font-weight: 500;
  transition: all 0.18s ease-out;
}

button:hover{
  transform:translateY(-1px);
  box-shadow: 0 4px 12px rgba(87, 255, 146, 0.35);
}

button[type="reset"]{ 
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

button[type="reset"]:hover{ 
  background: rgba(255, 255, 255, 0.15);
}

.note{ 
  font-size:0.9rem; 
  color:var(--text-muted);
}
