/* ==========================================================
   RedOne Labs - Global Styles
   Author: RedOne Labs
   Version: 1.0
   ========================================================== */

/* ----------------------------
   Root and Global Variables
----------------------------- */
:root {
  --primary: #c62828;
  --text-dark: #222;
  --text-light: #555;
  --background-light: #fff;
  --background-alt: #fafafa;
  --border-light: #e0e0e0;
  --transition-fast: 0.3s ease;
  --font-body: "Inter", "Poppins", "Helvetica Neue", sans-serif;
}

/* ----------------------------
   Reset & Base Styles
----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: #a81d1d;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ----------------------------
   Navbar
----------------------------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.nav-logo {
  width: 120px;
  height: auto;
}

nav a {
  margin-left: 25px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* ----------------------------
   Hero Section
----------------------------- */
.hero {
  padding: 100px 20px;
  text-align: center;
}

.modern-hero {
  background: linear-gradient(135deg, var(--primary), #ff6f61);
  color: #fff;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.hero-btn {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  display: inline-block;
  transition: var(--transition-fast);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #a81d1d;
}

/* ----------------------------
   What We Build
----------------------------- */
.what-we-do {
  padding: 60px 20px;
  text-align: center;
}

.what-we-do h2 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.build-card {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.build-card:hover {
  transform: translateY(-5px);
}

/* -------------------------------------
   Featured Product (Clean Layout)
-------------------------------------- */
.featured-product {
  background: var(--background-alt);
  padding: 80px 20px;
}

.featured-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.featured-text {
  flex: 1 1 450px;
}

.featured-text h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.featured-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.featured-img {
  flex: 1 1;
  width: 100px;
  height: auto;
  border-radius: 24px;
  box-shadow: none; /* Removed the shadow */
  background: none; /* Removed white card effect */
  transform: none;
  transition: transform 0.3s ease;
}

.featured-img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .featured-container {
    flex-direction: column;
    text-align: center;
  }

  .featured-img {
    width: 180px;
    margin-top: 20px;
  }
}

/* ----------------------------
   Products Listing Page
----------------------------- */
.products-section {
  padding: 60px 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 30px 25px;
  text-align: center;
  transition: all var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-icon-large {
  width: 100px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.product-btn:hover {
  background: #b81e1e;
}

/* ----------------------------
   Product Details Page
----------------------------- */
.simple-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}

.product-visual {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.product-icon {
  width: 180px;
  border-radius: 32px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.product-info {
  flex: 1 1 500px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.feature-list li {
  margin-bottom: 8px;
}

.store-buttons {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.store-btn img {
  height: 55px;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.store-btn:hover img {
  transform: scale(1.05);
}

.policy-link {
  margin-top: 20px;
}

/* ----------------------------
   About Page
----------------------------- */
.about-page {
  padding: 60px 20px;
  line-height: 1.8;
}

.about-page h2 {
  color: var(--primary);
  margin-top: 30px;
}

.about-values {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.about-values li {
  margin-bottom: 8px;
}

/* ----------------------------
   Privacy Policy
----------------------------- */
.privacy {
  padding: 50px 20px;
}

.privacy h3 {
  color: var(--primary);
  margin-top: 25px;
}

/* ----------------------------
   Footer
----------------------------- */
footer {
  background: #fff;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding: 25px 15px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}

.footer-mail {
  color: var(--primary);
  font-weight: 500;
}

/* ----------------------------
   Responsive Design
----------------------------- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 8px;
  }

/* -------------------------------------
   Navbar Logo & Interaction
-------------------------------------- */
.nav-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-logo:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* Make sure nav-container doesn’t limit logo height */
.nav-container {
  align-items: center;
  min-height: 70px;
}

  .simple-layout {
    flex-direction: column;
    text-align: center;
  }

  @media (max-width: 768px) {
    .nav-logo {
      width: 130px; /* Slightly smaller on mobile for balance */
    }
  }

  .product-icon {
    width: 140px;
  }

  .featured-container {
    flex-direction: column;
  }

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

  footer {
    text-align: center;
  }
}

/* -------------------------------------
   Page Header (Definition for Child Pages)
-------------------------------------- */
.page-header {
  background: linear-gradient(135deg, #fff5f5, #ffeaea);
  border-bottom: 1px solid var(--border-light);
  padding: 70px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.page-header h1 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* -------------------------------------
   Section Container Definition (Body)
-------------------------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin: 50px auto;
  padding: 40px 30px;
}

/* For pages with lots of text like About or Privacy */
.about-page,
.privacy {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 50px 30px;
  margin-top: 40px;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* -------------------------------------
   Upcoming Product Styling
-------------------------------------- */
.upcoming {
  position: relative;
  opacity: 0.9;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming:hover {
  transform: translateY(-4px);
}

.upcoming .dimmed {
  filter: grayscale(1);
  opacity: 0.6;
}

.coming-soon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------
   Two Column Product Layout
-------------------------------------- */
.two-column-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-items: center;
  margin-top: 40px;
}

.two-column-layout .product-card {
  width: 100%;
  max-width: 450px;
}

/* For smaller screens - single column */
@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.two-column-layout {
  max-width: 960px;
  margin: 40px auto;
}

.archive-banner {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  color: #b71c1c;
  font-size: 0.95rem;
}

.archive-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* -------------------------------------
   Policy Version History Table
-------------------------------------- */
.policy-history {
  margin-top: 60px;
}

.policy-history h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.4rem;
  text-align: center;
}

.policy-history p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 25px;
  text-align: center;
}

/* Main Table Styles */
.version-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.version-table th,
.version-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

.version-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-table tr:last-child td {
  border-bottom: none;
}

/* Alternating row color */
.version-table tbody tr:nth-child(odd) {
  background: #fff;
}

.version-table tbody tr:nth-child(even) {
  background: #fdf6f6;
}

/* Hover effect */
.version-table tbody tr:hover {
  background: #fff1f1;
  transition: background 0.3s ease;
}

/* Link styling inside table */
.version-table td a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.3s, border-bottom-color 0.3s;
}

.version-table td a:hover {
  color: #a81d1d;
  border-bottom-color: #a81d1d;
}

/* Responsive Table */
@media (max-width: 700px) {
  .version-table,
  .version-table thead,
  .version-table tbody,
  .version-table th,
  .version-table td,
  .version-table tr {
    display: block;
  }

  .version-table thead {
    display: none;
  }

  .version-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
  }

  .version-table td {
    padding: 10px 15px;
    border: none;
    position: relative;
    text-align: left;
  }

  .version-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
  }
}

/* -------------------------------------
   FAQ Section
-------------------------------------- */
.faq {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 60px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.faq h2 {
  color: var(--primary);
  margin-bottom: 25px;
  text-align: center;
}

.faq-item {
  margin-bottom: 25px;
  text-align: left;
}

.faq-item h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Improve readability of product info lists */
.product-info h3 {
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* -------------------------------------
   Product Hero Section (Modern Layout)
-------------------------------------- */
.product-hero {
  background: linear-gradient(135deg, #fff9f9 0%, #ffeaea 100%);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.hero-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 76, 76, 0.3), transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
}

.hero-title {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Store buttons */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-btn img {
  height: 55px;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.store-btn:hover img {
  transform: scale(1.05);
}

/* Background soft waves (subtle) */
.product-hero::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(255, 160, 160, 0.15), transparent 70%);
  transform: rotate(25deg);
}

.product-hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(255, 100, 100, 0.12), transparent 70%);
  transform: rotate(-15deg);
}

/* Responsive Hero */
@media (max-width: 768px) {
  /* .hero-app-icon {
    width: 90px;
    height: 90px;
  } */

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

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .store-btn img {
    height: 45px;
  }
}

/* -------------------------------------
   Product Details Section
-------------------------------------- */
.product-details {
  padding: 60px 20px;
  text-align: center;
}

.product-details h2 {
  color: var(--primary);
  margin-bottom: 40px;
  font-size: 1.5rem;
}

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

.feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.feature-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}


/* -------------------------------------
   How It Works Section
-------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.8;
}

.steps li {
  margin-bottom: 10px;
  font-size: 1rem;
}