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

:root {
  --color-primary: #0052FF;
  --color-primary-hover: #0045D9;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F8FF;
  --color-text: #0A0B0D;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-silver: #94A3B8;
  --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);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo img {
  height: 32px;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: radial-gradient(circle at top right, #F0F4FF, transparent);
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.hero .badge {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Device Visual */
.device-container {
  margin: 3rem auto 4rem;
  max-width: 600px;
  position: relative;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-actions .btn-primary {
  font-size: 1.25rem;
  padding: 1rem 3rem;
}

.hero-subtext {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.device-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.device-image:hover {
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.25);
}

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: white;
}

.btn-outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-silver);
}

/* Features / How it works */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card p {
  color: var(--color-text-muted);
}

/* Technical Details */
.tech-details {
  background-color: var(--color-bg-alt);
  border-radius: 24px;
  padding: 3rem;
  margin-top: 4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.tech-label {
  font-weight: 500;
  color: var(--color-text-muted);
}

.tech-value {
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--color-primary);
}

/* Performance & Efficiency */
.performance-card {
  background: linear-gradient(135deg, var(--color-primary), #0037A3);
  color: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-sub {
  font-size: 1rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-blue {
  background: #E0E7FF;
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header {
    height: 60px;
  }

  .header .container {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .logo {
    font-size: 0.9rem;
    gap: 0.35rem;
  }

  .logo span {
    white-space: nowrap;
  }

  .logo img {
    height: 24px;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* Application Layout (Sidebar Architecture) */
.app-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: var(--color-bg-alt);
  margin: 0;
  overflow: hidden;
}

.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.sidebar .logo {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.sidebar .logo img {
  height: 32px;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

.mobile-topbar {
  display: none;
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
}

.hamburger-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
}

/* Responsive Utilities */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.flex-responsive {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .mobile-overlay.show {
    display: block;
  }

  .mobile-topbar {
    display: flex;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .flex-responsive {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-container {
    padding: 2rem 1rem;
  }
}