/* ==========================================================================
   VETAN DESK - PILOT LANDING PAGE STYLES
   "Institutional Trust" Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #0F2B4E;      /* Deep Navy */
  --color-primary-light: #1A3F6B;
  --color-primary-dark: #0A1D36;
  
  --color-accent: #0EA5E9;       /* Sky Blue */
  --color-accent-light: #38BDF8;
  
  --color-cta: #F59E0B;          /* Amber */
  --color-cta-hover: #D97706;
  
  --color-surface: #F8FAFC;      /* Off-white */
  --color-surface-hover: #F1F5F9;
  --color-card: #FFFFFF;
  
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-inverse: #F8FAFC;
  --color-text-inverse-muted: #CBD5E1;
  
  --color-border: #E2E8F0;
  --color-border-dark: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Sizing */
  --nav-height: 80px;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.2);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-label-light {
  color: var(--color-accent-light);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  color: var(--color-text);
}

.section-title-light {
  color: var(--color-text-inverse);
}

.section-desc {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 700px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.25rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cta {
  background-color: var(--color-cta);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-full {
  width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(15, 43, 78, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-dark);
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(15, 43, 78, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  border-radius: 8px;
  color: white;
  font-size: 1.25rem;
}

.brand-accent {
  color: var(--color-accent-light);
}

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

.nav-links a:not(.nav-cta) {
  color: var(--color-text-inverse-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--color-text-inverse);
}

.nav-cta {
  padding: 8px 20px;
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-text-inverse);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(15, 43, 78, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  flex: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981; /* Green success */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #fff, var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-inverse-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  border-radius: 40px;
  padding: 12px;
  background: #1E293B; /* Slate 800 */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform var(--transition-normal);
}

.phone-frame:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.phone-frame img {
  border-radius: 32px;
  display: block;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  filter: blur(100px);
  opacity: 0.2;
  z-index: -1;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */

.section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--color-surface);
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.section-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-card {
  padding: 32px 24px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-inverse);
}

.feature-desc {
  color: var(--color-text-inverse-muted);
  font-size: 1rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

.step-connector {
  height: 2px;
  background: var(--color-border);
  margin-top: 56px;
}

/* Download Section */
.download-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 60px;
  backdrop-filter: blur(20px);
}

.download-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-inverse-muted);
  margin-bottom: 32px;
}

.download-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.875rem;
  color: var(--color-text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #10B981;
  font-size: 0.875rem;
  font-weight: 500;
}

.install-guide {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.install-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-step {
  display: flex;
  gap: 16px;
}

.install-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.install-step-content strong {
  display: block;
  font-size: 1rem;
  color: white;
  margin-bottom: 4px;
}

.install-step-content p {
  font-size: 0.875rem;
  color: var(--color-text-inverse-muted);
}

/* Admin Section */
.admin-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  background: var(--color-surface-hover);
  border-radius: 32px;
}

.admin-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* Contact Section */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  font-weight: 500;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.contact-form {
  background: var(--color-card);
  padding: 40px;
  border-radius: 24px;
  color: var(--color-text);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse-muted);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-tagline {
  max-width: 400px;
  margin-bottom: 40px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-version {
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   ANIMATIONS & UTILS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container,
  .download-block,
  .contact-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .phone-frame {
    transform: none !important;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 43, 78, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .download-block {
    padding: 32px 24px;
  }
  
  .install-guide {
    padding: 24px;
  }
  
  .admin-block {
    padding: 40px 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
