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

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-text: #ffffff;
  --color-text-secondary: #888888;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --app-icon-size: min(180px, 18vw);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.site-header {
  padding: 1.25rem 2rem;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.7;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--color-text);
}

.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-small:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 200;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* App Showcase Section */
.app-showcase {
  padding: 1rem 0 5rem;
  overflow: clip;
}

.app-row {
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
  padding: 1rem 0;
}

.app-track {
  display: flex;
  gap: 2rem;
  padding: 0 2rem;
  will-change: transform;
  justify-content: center;
}

.app-icon {
  flex-shrink: 0;
  width: var(--app-icon-size);
  height: var(--app-icon-size);
  border-radius: calc(var(--app-icon-size) * 0.22);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.app-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 50px rgba(59, 130, 246, 0.3);
}

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

/* News Section */
.news {
  padding: 6rem 2rem;
  background: var(--color-surface);
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news h2 {
  font-size: 2rem;
  font-weight: 200;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.news-card {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.news-card .news-source,
.news-card .news-date {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.news-card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0.5rem 0 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.no-posts {
  text-align: center;
  color: var(--color-text-secondary);
  grid-column: 1 / -1;
  padding: 2rem;
}

/* Contact Section */
.contact {
  padding: 6rem 2rem;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-content h2 {
  font-size: 1.75rem;
  font-weight: 200;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  border: 1px solid #333;
  border-radius: 10px;
  color: var(--color-text);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.modal-content .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  :root {
    --app-icon-size: min(140px, 28vw);
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding: 3rem 1.5rem 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .app-track {
    gap: 1rem;
    padding: 0 1rem;
  }

  .app-row {
    margin-bottom: 1rem;
  }

  .news {
    padding: 4rem 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 2rem;
  }
}
