/* ============================================
   Beta Flash Solutions — Corporate Website
   Dark theme | Teal accent | Professional
   ============================================ */

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

:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --bg-surface-hover: #1c2230;
  --teal: #14b8a6;
  --teal-dim: #0d9488;
  --teal-glow: rgba(20, 184, 166, 0.15);
  --yellow: #f59e0b;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-heading: #f0f6fc;
  --border: #30363d;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 960px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--teal-dim);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--text-heading);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

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

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

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* --- Hero --- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(48, 54, 61, 0.5) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 20%, transparent 100%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: 96px;
  height: 96px;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}


/* --- Gradient Divider --- */
.section + .section {
  border-top: none;
  position: relative;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}


/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}


/* --- About / Features --- */
.about-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.06);
}

.feature-icon {
  color: var(--teal);
  margin-bottom: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.08);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.features-image {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 240px;
}

.features-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3;
}


/* --- Technologies --- */
.tech-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tech-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.06);
}

.tech-icon {
  color: var(--teal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}


/* --- Security --- */
.security-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.security-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.security-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.06);
}

.security-icon {
  color: var(--teal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.security-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}


/* --- Story / About Us --- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.story-content {
  max-width: 640px;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}

.story-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}


/* --- Contact location --- */
.contact-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-location svg {
  color: var(--text-muted);
}


/* --- Products (homepage card — kept for products page) --- */
.products {
  text-align: center;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  margin: 0 auto;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.06);
}

.product-icon {
  color: var(--teal);
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.btn:hover {
  background: var(--teal-dim);
  color: var(--bg);
}


/* --- Platform Cards --- */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.platform-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.06);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.platform-header svg {
  color: var(--teal);
  flex-shrink: 0;
}

.platform-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}


/* --- Roll Calculator Page --- */
.rc-hero-tagline {
  font-size: 1.2rem;
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: 8px;
}

.rc-hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.rc-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 48px;
}

.rc-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.rc-feature:hover {
  border-color: var(--teal);
}

.rc-feature-icon {
  color: var(--teal);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.08);
  border-radius: var(--radius);
}

.rc-feature-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.rc-feature-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.rc-feature-content p:last-child {
  margin-bottom: 0;
}

.rc-download {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 32px;
}

.rc-download h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.rc-download p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.rc-privacy-link {
  text-align: center;
  margin-top: 16px;
}

.rc-privacy-link a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

.rc-privacy-link a:hover {
  color: var(--teal);
}


/* --- Contact --- */
.contact {
  text-align: center;
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--teal);
  padding: 14px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-email:hover {
  border-color: var(--teal);
  background: var(--bg-surface);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.06);
}


/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--text-heading);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}


/* --- Content Pages (Products, etc.) --- */
.content-page {
  padding-top: 40px;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 8px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-left: 20px;
  margin-bottom: 20px;
  list-style: none;
}

.page-content ul li {
  margin-bottom: 8px;
}

.page-content strong {
  color: var(--text);
}

.page-content a {
  font-weight: 500;
  font-size: 1rem;
}


/* --- Legal Pages (Privacy, Terms) --- */
.legal-page {
  padding-top: 40px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-left: 20px;
  margin-bottom: 12px;
}

.legal-content strong {
  color: var(--text);
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .hero-glow {
    width: 160px;
    height: 160px;
  }

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

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

  .section {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

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

  .story-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}
