:root {
  --bg-color: #000000;
  --bg-gradient: radial-gradient(circle at top right, #0C0C0E, #000000);
  --text-primary: #ffffff;
  --text-secondary: #B5B5BE;
  --accent-color: #FF5D22;
  --glass-bg: rgba(12, 12, 14, 0.6);
  --glass-border: #2A2A30;
  --glow: 0 4px 16px rgba(255, 93, 34, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

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

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 0 8rem 0;
}

.hero-img {
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
  filter: drop-shadow(var(--glow));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero p {
  max-width: 500px;
  margin: 0 auto 3rem auto;
  font-size: 1.25rem;
  font-weight: 400;
}

/* App Store Button */
.app-store-link {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.app-store-link:hover {
  transform: scale(1.02);
  filter: drop-shadow(var(--glow));
}

.app-store-badge {
  height: 56px; /* Standard Apple badge height */
  width: auto;
  display: block;
}

/* Bento Box Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
  padding: 4rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.bento-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.bento-item:nth-child(1) {
  grid-column: span 2;
  min-height: 350px;
}

.bento-item:nth-child(2) {
  grid-column: span 1;
}

.bento-item:nth-child(3) {
  grid-column: span 3;
  min-height: 250px;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--glow);
}

.bento-content {
  max-width: 100%;
}

.gradient-text {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #8b949e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-item p {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Legal Pages */
.legal-content {
  padding: 4rem 0 8rem 0;
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  color: var(--text-primary);
}

.legal-content p, .legal-content li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content ul {
  padding-left: 2rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0;
  margin-top: 4rem;
  text-align: center;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 3.5rem; }
  .hero { padding: 4rem 0; }
  .bento-grid {
    display: flex;
    flex-direction: column;
  }
  .bento-item { 
    padding: 2.5rem; 
    min-height: auto !important;
  }
  .gradient-text { font-size: 2rem; }
  .legal-content { padding: 2rem; }
}
