/* -------------------------------------------------------------
 * 🎨 index.css - PlatformFlow Hub Premium Design System
 * Ultraviolet Cyber-Minimalist Theme
 * ------------------------------------------------------------- */

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

:root {
  --font-scale: 1;
  font-size: calc(16px * var(--font-scale));

  --bg-deep: hsl(224, 25%, 6%);
  --bg-card: hsla(224, 20%, 12%, 0.65);
  --primary: hsl(262, 85%, 58%);
  --primary-hover: hsl(262, 100%, 65%);
  --secondary: hsl(180, 100%, 48%);
  --text-main: hsl(210, 20%, 98%);
  --text-muted: hsl(218, 12%, 65%);
  --border-glow: hsla(262, 85%, 58%, 0.2);
  --accent-error: hsl(350, 85%, 55%);
  --accent-success: hsl(145, 80%, 45%);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --bg-header: hsla(224, 25%, 6%, 0.7);
  --bg-header-scrolled: hsla(224, 25%, 6%, 0.9);
  --bg-footer: hsl(224, 25%, 4%);
  --border-flat: hsla(210, 20%, 98%, 0.05);
}

/* Light Theme Support */
.light-mode {
  --bg-deep: hsl(210, 40%, 98%);
  --bg-card: hsla(0, 0%, 100%, 0.8);
  --primary: hsl(262, 85%, 55%);
  --primary-hover: hsl(262, 85%, 48%);
  --secondary: hsl(180, 100%, 38%);
  --text-main: hsl(222, 47%, 12%);
  --text-muted: hsl(215, 16%, 45%);
  --border-glow: hsla(262, 85%, 58%, 0.15);
  --bg-header: hsla(210, 40%, 98%, 0.8);
  --bg-header-scrolled: hsla(0, 0%, 100%, 0.95);
  --bg-footer: hsl(214, 32%, 93%);
  --border-flat: hsla(222, 47%, 12%, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(262, 85%, 58%, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(180, 100%, 48%, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-flat);
  transition: var(--transition-smooth);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-wrapper svg {
  width: 34px;
  height: 34px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-main);
}

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

/* Language Selector Dropdown */
.lang-selector-container {
  position: relative;
}

.btn-lang-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-flat);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.btn-lang-trigger:hover {
  border-color: var(--primary);
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border-flat);
  border-radius: 8px;
  list-style: none;
  padding: 6px 0;
  min-width: 130px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 200;
}

.lang-dropdown-list.show {
  display: block;
}

.lang-option {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-option:hover, .lang-option.selected {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-flat);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  border-color: var(--primary);
}

.light-mode .icon-sun { display: none; }
.light-mode .icon-moon { display: block; }
.icon-sun { display: block; }
.icon-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(280, 85%, 55%));
  color: #ffffff;
  box-shadow: 0 4px 15px var(--border-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--border-glow);
}

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

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

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: hsla(262, 85%, 58%, 0.12);
  border: 1px solid hsla(262, 85%, 58%, 0.3);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Sections Base */
section {
  padding: 100px 0;
}

.section-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Ecosystem / Products Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-flat);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(262, 85%, 58%, 0.15);
  color: var(--primary);
}

.card h3 {
  font-size: 1.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-list li svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.card-cta {
  width: 100%;
  margin-top: auto;
}

/* Glass Effect Utility */
.glass-effect {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-flat);
  border-radius: 16px;
}

/* Contact 2-Column Balanced Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  padding-right: 24px;
}

.contact-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-flat);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

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

/* Form Styling & input-cyber */
.contact-form {
  padding: 40px;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Congruent Form Inputs & Selects styling */
.input-cyber {
  width: 100%;
  height: 46px; /* Strict 46px height */
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-flat);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

/* Cyber Styled Select Dropdown */
select.input-cyber {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.input-cyber option {
  background-color: var(--bg-deep);
  color: var(--text-main);
}

textarea.input-cyber {
  height: auto !important;
  resize: vertical;
}

.input-cyber::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.input-cyber:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 10px hsla(180, 100%, 48%, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.input-cyber:user-valid {
  border-color: var(--accent-success);
}

.input-cyber:user-invalid {
  border-color: var(--accent-error);
}

.form-submit-btn {
  width: 100%;
  margin-top: 12px;
  height: 48px;
  font-size: 1rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  z-index: 9999;
  padding: 24px;
  background: rgba(15, 23, 40, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-flat);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(150px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--secondary);
  text-decoration: none;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cookie {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.btn-cookie-accept {
  background: var(--primary);
  color: white;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-flat);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: var(--accent-success);
  background: hsla(145, 80%, 15%, 0.9);
}

/* Footer */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-flat);
  padding: 60px 0 40px;
  color: var(--text-muted);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-flat);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .nav-menu {
    display: none;
  }
}
