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

:root {
  /* HSL Color System */
  --bg-main: 222, 47%, 7%; /* #090d16 */
  --bg-surface: 222, 40%, 12%; /* #121824 */
  --bg-surface-glass: 222, 40%, 12%, 0.7;
  
  --primary: 28, 90%, 55%; /* Saffron/Orange #f08323 */
  --primary-glow: 28, 90%, 55%, 0.15;
  --primary-hover: 28, 95%, 50%;
  
  --secondary: 42, 95%, 55%; /* Warm Gold #f0ab23 */
  
  --text-primary: 210, 40%, 98%; /* #f8fafc */
  --text-muted: 215, 20%, 65%; /* #94a3b8 */
  --text-glow: 210, 40%, 98%, 0.1;
  
  --border-color: 217, 30%, 18%; /* #1e293b */
  --border-glow: 28, 90%, 55%, 0.3;
  
  /* Font Outlines */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: hsl(var(--bg-main));
  color: hsl(var(--text-primary));
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(var(--primary), 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(var(--secondary), 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
}

.nav-links a:hover, .nav-links a.active {
  color: hsl(var(--text-primary));
  text-shadow: 0 0 10px hsla(var(--text-primary), 0.3);
}

/* Mobile Nav Toggle (Simplified for vanilla) */
.menu-btn {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: hsla(var(--primary), 0.1);
  border: 1px solid hsla(var(--primary), 0.2);
  color: hsl(var(--primary));
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: pulse 3s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff 40%, hsl(var(--text-muted)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: hsl(var(--text-muted));
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.developer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: #000000;
  box-shadow: 0 4px 20px hsla(var(--primary), 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(var(--primary), 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: hsla(var(--bg-surface), 0.6);
  border: 1px solid hsl(var(--border-color));
  color: hsl(var(--text-primary));
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: hsla(var(--primary), 0.5);
  background: hsla(var(--bg-surface), 0.9);
}

/* App Showcase Section */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: hsl(var(--primary));
  border-radius: 2px;
}

.section-header p {
  color: hsl(var(--text-muted));
  font-size: 1.05rem;
}

/* Showcase Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.app-card {
  background: hsla(var(--bg-surface-glass));
  border: 1px solid hsl(var(--border-color));
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: hsla(var(--primary), 0.4);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 30px hsla(var(--primary), 0.05);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, hsla(var(--primary), 0.2), hsla(var(--secondary), 0.2));
  border: 1px solid hsla(var(--primary), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title-group h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.app-category {
  font-size: 0.8rem;
  color: hsl(var(--primary));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-description {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.app-platforms {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: hsla(var(--border-color), 0.5);
  border: 1px solid hsl(var(--border-color));
  color: hsl(var(--text-muted));
}

.platform-badge.android {
  color: #3DDC84;
}

.platform-badge.ios {
  color: #FAFAFA;
}

.app-actions {
  display: flex;
  gap: 1rem;
}

.app-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.app-btn-play {
  background: #00e676;
  color: #000000;
}

.app-btn-play:hover {
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
  transform: translateY(-1px);
}

.app-btn-apple {
  background: #ffffff;
  color: #000000;
}

.app-btn-apple:hover {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.app-btn-privacy {
  border: 1px solid hsl(var(--border-color));
  color: hsl(var(--text-muted));
}

.app-btn-privacy:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--text-primary));
}

/* Privacy & Legal Section specific page elements */
.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.privacy-card {
  background: hsla(var(--bg-surface-glass));
  border: 1px solid hsl(var(--border-color));
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: hsl(var(--secondary));
  transform: translateX(-3px);
}

.privacy-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, hsl(var(--text-muted)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-meta {
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.privacy-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: hsl(var(--text-primary));
  border-left: 3px solid hsl(var(--primary));
  padding-left: 0.75rem;
}

.privacy-content p {
  color: hsl(var(--text-muted));
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  color: hsl(var(--text-muted));
  margin: 1rem 0 1.5rem 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background: hsla(var(--bg-surface), 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: hsl(var(--text-muted));
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsla(var(--primary), 0.1);
  border: 1px solid hsla(var(--primary), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  font-size: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--text-primary));
}

.form-control {
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: hsl(var(--text-primary));
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 15px hsla(var(--primary), 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer Section */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: hsl(var(--bg-main));
  padding: 4rem 2rem;
  color: hsl(var(--text-muted));
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: hsl(var(--text-primary));
}

.copyright {
  font-size: 0.9rem;
}

/* Keyframes */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.98);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* can expand with JS if needed, keeping simple and clean */
  }
  
  .hero {
    padding-top: 4rem;
  }
}
