*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f1e4ec;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #3a0618;
  background-image: url("../images/sland.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100%;
  line-height: 1.6;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ========================================
   SR6 Labs — Design System
   ======================================== */

/* --- Container --- */
.sr6-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navbar --- */
.sr6-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 48, 73, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
}

.sr6-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sr6-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.sr6-brand span {
  font-weight: 400;
  opacity: 0.85;
}

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

.sr6-nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s, opacity 0.2s;
  position: relative;
}

.sr6-nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.sr6-nav-links a:hover,
.sr6-nav-links a.active {
  color: #fff;
  opacity: 1;
}

.sr6-nav-links a.active::after,
.sr6-nav-links a:hover::after {
  width: 100%;
}

/* --- Page content --- */
.page-content {
  flex: 1;
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-inner {
  padding: 4rem 2rem;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin: 0 0 1.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: #fff;
}

.hero-rotating {
  display: inline-block;
  color: #f63049;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.word-in {
  opacity: 1;
  transform: translateY(0);
}

.word-out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0.85;
}

.hero-cta {
  margin-bottom: 3rem;
}

/* --- Scroll hint --- */
.scroll-hint {
  display: flex;
  justify-content: center;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(8px); }
  60% { transform: rotate(45deg) translateY(4px); }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: #f63049;
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 48, 73, 0.35);
}

/* --- About strip --- */
.about-strip {
  background: rgba(107, 29, 60, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4rem 0;
  text-align: center;
}

.about-strip h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: #fff;
}

.about-strip p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* --- Section headings --- */
.section-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2.5rem;
  letter-spacing: 0.02em;
}

.section-sub {
  text-align: center;
  opacity: 0.8;
  margin: -1.5rem 0 2.5rem;
  font-size: 1.05rem;
}

/* --- App cards (Home) --- */
.featured-apps {
  padding: 5rem 0;
}

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

.app-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.app-card-icon img {
  width: 64px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  border-radius: 14px;
}

.app-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: #fff;
}

.app-card-body p {
  margin: 0 0 1rem;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-link {
  color: #f63049;
  font-weight: 600;
  font-size: 0.9rem;
  transition: letter-spacing 0.2s ease;
}

.app-card:hover .card-link {
  letter-spacing: 0.06em;
}

/* --- Page hero (sub-pages) --- */
.page-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.page-hero-sm {
  padding: 4rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.8rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0;
}

/* --- Products grid --- */
.products-grid {
  padding: 2rem 0 5rem;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-color: var(--accent, #f63049);
}

.product-card-visual img {
  width: 120px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border-radius: 14px;
}

.product-card-body h2 {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
  color: #fff;
}

.product-tagline {
  color: var(--accent, #f63049);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.8rem;
}

.product-card-body > p {
  margin: 0 0 1.2rem;
  opacity: 0.85;
  line-height: 1.6;
}

.product-platforms {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.platform-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

/* --- Product hero --- */
.product-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.product-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.product-hero-icon {
  width: auto;
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-hero-icon.haway-logo {
  max-width: 260px;
  max-height: 140px;
}

@media (max-width: 768px) {
  .product-hero-icon.haway-logo {
    max-width: 325px;
    max-height: 175px;
  }
}

.product-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.product-hero-tagline {
  font-size: 1.2rem;
  color: var(--accent, #f63049);
  font-weight: 600;
  margin: 0.5rem 0;
}

.product-hero-desc {
  max-width: 580px;
  margin: 0.5rem auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* --- Store badges --- */
.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badges img {
  height: 44px;
  width: auto;
  transition: transform 0.2s ease;
}

.store-badges img:hover {
  transform: translateY(-2px);
}

/* --- Features grid --- */
.features-section {
  padding: 4rem 0;
  background: rgba(107, 29, 60, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.feature-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #fff;
}

.feature-card p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- GoalDigger features --- */
.gd-feature-card {
  text-align: center;
}

.gd-feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* --- Screenshots --- */
.screenshots-section {
  padding: 4rem 0 5rem;
}

.screenshots-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.screenshot-frame {
  text-align: center;
  transition: transform 0.3s ease;
}

.screenshot-frame:hover {
  transform: scale(1.03);
}

.screenshot-frame img {
  width: 100%;
  max-width: 280px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.screenshot-frame p {
  margin: 1rem 0 0;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* --- Themes (GoalDigger) --- */
.themes-section {
  padding: 4rem 0;
  background: rgba(107, 29, 60, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.theme-swatch {
  border: 2px solid;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-swatch:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.theme-swatch span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

/* --- Product CTA --- */
.product-cta {
  padding: 4rem 0;
  text-align: center;
}

.product-cta h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- News --- */
.news-section {
  padding: 2rem 0 5rem;
}

.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.news-entry:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-date-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-date-col time {
  font-size: 0.85rem;
  opacity: 0.6;
}

.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  width: fit-content;
}

.tag-launch {
  background: rgba(246, 48, 73, 0.25);
  color: #f63049;
  border: 1px solid rgba(246, 48, 73, 0.4);
}

.tag-update {
  background: rgba(108, 92, 231, 0.25);
  color: #a78bfa;
  border: 1px solid rgba(108, 92, 231, 0.4);
}

.tag-studio {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.news-body-col h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.news-body-col p {
  margin: 0;
  opacity: 0.8;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* --- Footer --- */
.sr6-footer {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 0;
  margin-top: auto;
}

.sr6-footer-inner {
  text-align: center;
}

.sr6-footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: 0.06em;
}

.sr6-footer-tagline {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0 0 1.2rem;
}

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

.sr6-footer-links a {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.sr6-footer-links a:hover {
  opacity: 1;
}

.sr6-footer-copy {
  font-size: 0.78rem;
  opacity: 0.4;
  margin: 0;
}

/* --- Contact form --- */
.contact-section {
  padding: 2rem 0 5rem;
}

.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f63049;
}

.success-msg {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* --- Scroll reveal animations --- */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Entrance animations --- */
.animate-fade-up {
  animation: fadeUp 0.7s ease both;
}

.animate-fade-down {
  animation: fadeDown 0.7s ease both;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Legal pages --- */
.legal-section {
  padding: 2rem 0 5rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3rem;
}

.legal-content h2 {
  color: #fff;
  font-size: 1.3rem;
  margin: 2.5rem 0 0.8rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  opacity: 0.9;
}

.legal-content p {
  margin: 0 0 0.8rem;
  line-height: 1.7;
  opacity: 0.85;
  font-size: 0.95rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  opacity: 0.85;
}

.legal-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-table th {
  color: #fff;
  font-weight: 600;
  opacity: 0.9;
}

.cookie-table td {
  opacity: 0.75;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sr6-nav {
    padding: 0.6rem 1rem;
  }

  .sr6-nav-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sr6-nav-links {
    gap: 1.2rem;
  }

  .hero {
    min-height: 70vh;
  }

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

  .app-cards {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-card-visual {
    display: flex;
    justify-content: center;
  }

  .product-platforms {
    justify-content: center;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .screenshots-row {
    grid-template-columns: 1fr;
  }

  .screenshot-frame img {
    max-width: 240px;
  }

  .themes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .sr6-container {
    padding: 0 1.2rem;
  }

  .app-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* SR6 Labs - Independent App Studio */
