﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.hidden {
    display: none !important;
}

:root {
    --primary: #2C3E50;
    --secondary: #3498DB;
    --accent: #1ABC9C;
    --highlight: #E74C3C;
    --light: #ECF0F1;
    --dark: #2C3E50;
    --gray: #7F8C8D;
    --light-gray: #F8F9FA;
    --gradient: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    --gradient-accent: linear-gradient(135deg, #1ABC9C 0%, #3498DB 100%);
    --gradient-highlight: linear-gradient(135deg, #E74C3C 0%, #F39C12 100%);
    --shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
    --shadow-hover: 0 20px 40px rgba(44, 62, 80, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* drawer positioning */
    --header-h: 76px;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
    overflow-x: hidden;
}

html[data-theme="dark"],
html[data-theme-resolved="dark"]{
    background: #ffffff;
}
html[data-theme="dark"] body,
html[data-theme-resolved="dark"] body{
    background: #ffffff;
    color: var(--dark);
}
html[data-theme="dark"] .site-header,
html[data-theme-resolved="dark"] .site-header{
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(44, 62, 80, 0.08);
}
html[data-theme="dark"] .toplink,
html[data-theme-resolved="dark"] .toplink{
    color: var(--dark);
}

.container {
    width: 96%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.anamika-text {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    position: relative;
}

.anamika-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.faceless-text {
    font-style: italic;
    font-weight: 600;
    color: var(--secondary);
    position: relative;
    padding: 0 5px;
}

.faceless-text::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -5px;
    font-size: 1.5em;
    color: var(--gray);
}

.faceless-text::after {
    content: '"';
    position: absolute;
    right: -10px;
    bottom: -5px;
    font-size: 1.5em;
    color: var(--gray);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(44, 62, 80, 0.08);
    position: sticky;
    top: 0;
    z-index: 3000;
    padding: 12px 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

/* Left side */
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-tag {
    font-size: 14px;
    color: rgba(0,0,0,0.55);
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    transform: translateY(6px);
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.main-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}
.main-avatar-initial {
    font-weight: 700;
    color: #334155;
    font-size: 14px;
}
.main-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-pill {
    width: 52px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #3a3a3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-pill:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.toplink {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    white-space: nowrap;
    padding: 6px 2px;
}

.toplink:hover {
    text-decoration: underline;
}

.toplink.signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toplink.signin i {
    font-size: 12px;
    transform: translateY(-1px);
}

.anamika {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
}

.anamika-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

.anamika-tag {
    font-size: 8px;
    font-weight: 600;
    color: rgba(0,0,0,0.55);
    white-space: nowrap;
}

/* =========================
   Sign In Popup (Header)
   ========================= */
.signin-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.signin-wrap .toplink.signin{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

/* Popup box */
.signin-pop{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 280px;
  max-width: min(360px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0;
  display: none;
  z-index: 5000;
  overflow: hidden;
}

/* No arrow */
.signin-pop::before{
  content: none;
}

/* Open state */
.signin-pop.open{
  display: block;
}

.signin-pop-close{
  position:absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
}
.signin-pop-close:hover{
  background:#e2e8f0;
}

.signin-pop-section{
  padding: 12px 14px;
}

.signin-pop-title{
  font-size: 14px;
  font-weight: 600;
  color:#0f172a;
  margin-bottom: 6px;
}

.signin-pop-text{
  font-size: 12px;
  color:#475569;
  line-height: 1.45;
  margin-bottom: 8px;
}
.signin-pop-select{
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  margin: 6px 0 10px 0;
  background: #fff;
}

.signin-pop-link{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.signin-pop-link:hover{
  background: #f8fafc;
}

.signin-pop-divider{
  height: 1px;
  background: rgba(15,23,42,0.12);
  margin: 0;
}

/* Mobile: make popup full width-ish and not clipped */
@media (max-width: 768px){
  .signin-pop{
    right: 0;
    left: auto;
  }
}
/* ========= */

/* ================================
   Mobile Drawer (Slide-in Left)
   FIXED: below header, no weird underline/blue arrow
================================ */

/* Drawer panel */
.mobile-drawer{
  position: fixed;
  left: 0;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  width: min(360px, 86vw);
  background: #fff;
  z-index: 2001;

  transform: translateX(-100%);
  transition: transform 240ms ease;

  display: flex;
  flex-direction: column;

  /* tuned to fit all items without scrolling */
  padding: 16px 16px;
  gap: 12px;

  box-shadow: 12px 0 28px rgba(0,0,0,0.12);
}

.mobile-drawer.active{
  transform: translateX(0);
}

/* overlay */
.drawer-overlay{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  background: rgba(0,0,0,0.22);
  z-index: 2000;
}

/* drawer header */
.drawer-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-logo{
  height: 42px;
  width: auto;
  object-fit: contain;
}

.drawer-close{
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

/* nav links (reduced spacing so no scrollbar) */
.drawer-nav{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav a{
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 12px;
  border-radius: 12px;
  transition: transform 160ms ease, background 160ms ease;
}

.drawer-nav a:hover{
  background: #f6f7f9;
  transform: translateX(4px);
}

/* ARROW: force black (fixes blue arrow) */
.drawer-arrow{
  color: #000;
  font-weight: 700;
  opacity: 0.8;
  text-decoration: none;
}

/* divider line */
.drawer-divider{
  height: 1px;
  background: #e8e8e8;
  margin: 6px 2px;
}

/* footer area */
.drawer-footer{
  margin-top: auto;
  padding-top: 6px;
  display: flex;
}

/* IMPORTANT FIX:
   If your footer uses <a class="drawer-footer-link"> ... </a>
   this removes underline + forces black arrow */
.drawer-footer-link{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 12px;
  border-radius: 12px;

  text-decoration: none;     /* removes the underline/line */
  color: #000;               /* removes blue link color */
  background: transparent;

  transition: transform 160ms ease, background 160ms ease;
}

.drawer-footer-link:hover{
  background: #f6f7f9;
  transform: translateX(4px);
}

/* image */
.drawer-anamika{
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Responsive header behaviour */
@media (max-width: 768px){
  .hamburger{ display:flex; }

  .header-right .toplink:not(.signin),
  .header-right .search-pill{
    display: none;
  }

  .brand-tag{ display: none; }
  .anamika-tag{ display:none; }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--gray);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray);
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
    background: var(--gradient-accent);
}

.secondary-btn {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.secondary-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 180px;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Hero Visualization */
.hero-visual {
    position: relative;
    height: 400px;
}

.cloud-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0.8;
}

.cloud-1 {
    width: 120px;
    height: 40px;
    top: 50px;
    left: 50px;
    animation: float 6s ease-in-out infinite;
}

.cloud-2 {
    width: 80px;
    height: 30px;
    top: 150px;
    right: 100px;
    animation: float 8s ease-in-out infinite 1s;
}

.cloud-3 {
    width: 100px;
    height: 35px;
    bottom: 100px;
    left: 150px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.hard-drive {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient);
    width: 120px;
    height: 120px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

.drive-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 25px;
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
}

.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.devices {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 20px;
}

.device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.device i {
    font-size: 2.5rem;
    color: var(--secondary);
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.device i:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.device span {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

/* Sections Common Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    display: grid;
    gap: 30px;
}

.vision-card, .mission-card, .values-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vision-card:hover, .mission-card:hover, .values-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.vision-card::before, .mission-card::before, .values-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.vision-icon, .mission-icon, .values-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.vision-card h3, .mission-card h3, .values-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.about-image {
    display: flex;
    justify-content: center;
}

.bridge-box-visual {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    transition: var(--transition);
}

.bridge-box-visual:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.bridge-box-visual h3 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bridge-box-visual h3 i {
    color: var(--secondary);
}

.bridge-animation {
    position: relative;
    height: 100px;
    margin: 30px 0;
}

.data-flow {
    position: absolute;
    width: 3px;
    height: 100%;
    background: var(--gradient);
    left: 50%;
    transform: translateX(-50%);
    animation: flow 2s linear infinite;
}

.data-flow.delay-1 {
    animation-delay: 0.5s;
}

.data-flow.delay-2 {
    animation-delay: 1s;
}

.bridge-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bridge-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.bridge-features i {
    color: var(--accent);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.product-card.featured {
    border: 2px solid var(--accent);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-highlight);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light) 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-glow {
    opacity: 1;
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.product-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin: 20px 0;
}

.product-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.product-features li i {
    color: var(--accent);
    font-size: 0.9rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--primary);
    gap: 12px;
}

.featured-link {
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.featured-link:hover {
    color: white;
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* How It Works */
.how-it-works {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.steps-container {
    position: relative;
    margin: 60px 0;
}

.step-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    z-index: 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.step {
    text-align: center;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 3;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 25px;
    position: relative;
    transition: var(--transition);
}

.step-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 20px;
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition);
}

.step:hover .step-glow {
    opacity: 0.5;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.demo-section {
    margin-top: 60px;
    text-align: center;
}

.video-placeholder {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: var(--gradient);
    border-radius: 25px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(52, 152, 219, 0.3);
}

.play-button {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 2rem;
    z-index: 2;
    transition: var(--transition);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    color: white;
    font-weight: 600;
}

/* Technology Section */
.technology-section {
    background: var(--light-gray);
}

.tech-diagram {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.tech-node {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-width: 200px;
    transition: var(--transition);
}

.tech-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.node-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.node-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.node-description {
    color: var(--gray);
    font-size: 0.9rem;
}

.tech-arrow {
    font-size: 2rem;
    color: var(--secondary);
    opacity: 0.5;
}

.tech-features {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.tech-features h3 {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.5rem;
}

.tech-features ul {
    list-style: none;
}

.tech-features li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tech-features li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tech-features li i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tech-features li strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

.tech-features li p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-content p {
    color: var(--gray);
    margin-bottom: 5px;
}

.info-content small {
    color: var(--gray);
    opacity: 0.7;
}

.social-connect {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

.is-disabled-link,
.link-column a.is-disabled-link,
.social-link.is-disabled-link {
    opacity: 0.6;
    cursor: not-allowed;
}

.is-disabled-link:hover,
.link-column a.is-disabled-link:hover,
.social-link.is-disabled-link:hover {
    transform: none;
    text-decoration: none;
    color: inherit;
    background: inherit;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--light-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
}

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

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    border-radius: 10px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.6rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.link-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-column a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.link-column a:hover {
    color: white;
    transform: translateX(5px);
}

.newsletter {
    padding: 0 10px;
}

.newsletter h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.newsletter p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-input {
    display: flex;
    gap: 10px;
}

.newsletter-input input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
}

.newsletter-input input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input button {
    width: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-input button:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.patent-notice {
    margin-top: 10px;
    font-size: 0.85rem;
}

.patent-notice i {
    margin: 0 5px;
    color: var(--accent);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    background: var(--gradient-accent);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    margin-bottom: 20px;
}

.modal-logo .anamika-logo {
    font-size: 2rem;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-tagline {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.modal-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.auth-form {
    display: none;
}
.auth-form.active { display: block; }

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-with-icon input {
    padding-left: 45px !important;
    padding-right: 45px !important;
}

.password-toggle {
    left: auto !important;
    right: 15px;
    cursor: pointer;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
}

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: var(--gray);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-btn:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.apple-btn:hover {
    border-color: #000;
    color: #000;
}

.password-strength { margin-top: 10px; }

.strength-bar {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 20%;
    background: #E74C3C;
    border-radius: 3px;
    transition: var(--transition);
}

.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
    margin-top: 3px;
}

.terms-group label {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--gray);
}

.terms-group a {
    color: var(--secondary);
    text-decoration: none;
}

.terms-group a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 30px 60px rgba(52, 152, 219, 0.4);
    }
}

@keyframes flow {
    0%   { height: 0;   opacity: 0; }
    50%  { height: 100%; opacity: 1; }
    100% { height: 0;   opacity: 0; top: 100%; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        height: 300px;
        margin-bottom: 40px;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .step-line {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-right .toplink:not(.signin),
    .header-right .search-pill {
        display: none;
    }

    .mobile-drawer.active {
        display: flex;
    }

    .brand-tag {
        display: none;
    }

    .anamika-tag {
        display: none;
    }

    .anamika {
        padding: 5px 10px;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .diagram-container {
        flex-direction: column;
        align-items: center;
    }

    .tech-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

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

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

    .modal-content {
        padding: 30px 20px;
    }

    .social-login {
        flex-direction: column;
    }

    .stat {
        min-width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* ================================
   HEADER SPACING RESTORE (Desktop)
   ================================ */

/* restore right-side header spacing */
.site-header .header-right {
    gap: 18px !important;   /* original spacing */
}

/* restore header link sizing */
.site-header .toplink {
    font-size: 16px !important;
    padding: 6px 2px !important;
}

/* restore search pill size */
.site-header .search-pill {
    width: 52px !important;
    height: 38px !important;
}

/* restore anamika logo size */
.site-header .anamika-logo {
    height: 34px !important;
}

/* restore anamika caption spacing */
.site-header .anamika {
    gap: 4px !important;
}

/* =========================================
   FIX: Anamika footer arrow alignment & line
   ========================================= */

/* make footer behave exactly like menu rows */
.drawer-footer{
  display: flex !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border: none !important;            /* remove any divider line */
}

/* align logo + arrow like other links */
.drawer-footer-link{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;     /* same as menu items */
}

/* normalize anamika logo size so arrow aligns */
.drawer-anamika{
  height: 36px !important;            /* closer to text height */
}

/* arrow exactly like others */
.drawer-footer-link .drawer-arrow{
  font-weight: 700;
  opacity: 0.8;
  transform: translateY(0);           /* remove offset */
}

/* kill any accidental line/border near footer */
.drawer-footer *,
.drawer-footer::before,
.drawer-footer::after{
  border: none !important;
}

/* ================================
   SIGN IN PAGE (signin.html) - COMPACT VERSION
   Modified to fit content in one page without scrollbar
================================ */

.auth-page{
  background:#fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure everything fits in viewport */
.auth-shell{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content: center;
  padding: 10px 16px;
  box-sizing: border-box;
}

/* More compact card with reduced padding */
.auth-card{
  width: min(500px, 92vw);
  max-width: 500px;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  padding: 12px 18px;
  background:#fff;
  box-sizing: border-box;
  margin: 10px 0;
}
.auth-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  margin-bottom: 10px;
}
.auth-back:hover{
  text-decoration: underline;
}

/* Brand row: logo + tagline aligned nicely */
.auth-brand{
  display:flex;
  align-items:center;
  gap:1px;
  margin-bottom: 4px;
}

.auth-brand-logo{
  height: 50px;          /* Reduced from 60px */
  width:auto;
  object-fit:contain;
  display:block;
}

.auth-brand-tag{
  color: rgba(0,0,0,0.55);
  font-weight:600;
  font-size: 11px;       /* Reduced from 12px */
  line-height: 1;
  transform: translateY(1px);
  white-space: nowrap;
}

/* Title smaller */
.auth-title{
  font-size: 26px;       /* Reduced from 30px */
  margin: 4px 0 8px;     /* Reduced margins */
  color: #111;
}

/* Info box more compact */
.auth-info{
  background:#f4f6f8;
  border-radius: 4px;
  padding: 8px 10px;     /* Reduced padding */
  font-size: 12px;       /* Slightly smaller */
  color:#111;
  margin-bottom: 8px;    /* Reduced margin */
  line-height: 1.3;
}

/* Smaller row spacing */
.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 4px 0 6px;     /* Reduced margins */
  font-size: 12px;
}

.auth-row-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.auth-muted{ color:#333; }

.auth-link{
  color:#0b65c2;
  text-decoration: underline;
  cursor:pointer;
}

.auth-form2{
  display:flex;
  flex-direction:column;
  gap:8px;               /* Reduced from 10px */
  margin-top: 4px;
}

.auth-label{
  font-size: 12px;       /* Reduced from 12.5px */
  color:#111;
  margin-top: 1px;
}

.auth-required{
  color:#d00;
  font-weight:700;
}

/* More compact inputs */
.auth-input{
  width:100%;
  height: 36px;          /* Reduced from 40px */
  border: 1px solid #111;
  border-radius: 4px;
  padding: 6px 8px;      /* Reduced padding */
  font-size: 13px;       /* Reduced from 13.5px */
  outline:none;
  background:#fff;
  box-sizing: border-box;
}

.auth-pass{
  position: relative;
  display:flex;
  align-items:center;
}

.auth-input-pass{
  padding-right: 60px;   /* Adjusted for smaller button */
}

.auth-show{
  position:absolute;
  right: 6px;
  border:none;
  background: transparent;
  color:#0b65c2;
  text-decoration: underline;
  font-weight:600;
  cursor:pointer;
  padding: 4px;
  font-size: 12px;       /* Reduced from 12.5px */
}

.auth-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 12.5px;     /* Reduced from 13px */
  margin-top: 0;
}

.auth-check input{
  width:14px;            /* Reduced from 16px */
  height:14px;           /* Reduced from 16px */
}

.auth-submit{
  margin-top: 2px;
  height: 40px;          /* Reduced from 44px */
  border:none;
  border-radius: 4px;
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.auth-or{
  text-align:center;
  margin: 8px 0 4px;     /* Reduced margins */
  color:#111;
  font-size: 12.5px;
}

/* Social smaller */
.auth-social{
  display:flex;
  gap:12px;              /* Reduced from 14px */
  justify-content:center;
  margin-top: 4px;
  margin-bottom: 2px;
}

.auth-social-btn{
  width:38px;            /* Reduced from 42px */
  height:38px;           /* Reduced from 42px */
  border: 1px solid #b9c1cb;
  border-radius: 6px;
  background:#fff;
  cursor:pointer;
  font-size: 15px;       /* Reduced from 17px */
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
}

.auth-help{
  text-align:center;
  margin-top: 6px;
  font-size: 12px;       /* Reduced from 12.5px */
  color:#111;
}

/* Footer adjustments */
.auth-footer{
  background: transparent !important;
  color: rgba(0,0,0,0.7) !important;
  padding: 8px 10px !important;
  border-top: 1px solid #e6e9ee;
  display:flex;
  justify-content:center;
  gap:12px;              /* Reduced gap */
  font-size: 11px;       /* Reduced from 12px */
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Make sure footer links are readable */
.auth-page footer.auth-footer .auth-link{
  color:#0b65c2;
}

/* Media query for very small screens */
@media (max-height: 700px) {
  .auth-shell {
    padding: 5px 16px;
  }
  
  .auth-card {
    padding: 8px 12px;
    margin: 5px 0;
  }
  
  .auth-brand-logo {
    height: 42px;
  }
  
  .auth-title {
    font-size: 22px;
    margin: 2px 0 6px;
  }
  
  .auth-info {
    padding: 6px 8px;
    font-size: 11.5px;
    margin-bottom: 6px;
  }
  
  .auth-submit {
    height: 36px;
  }
  
  .auth-footer {
    padding: 6px 10px !important;
    font-size: 10px;
  }
}

/* Media query for extremely small screens */
@media (max-height: 600px) {
  .auth-shell {
    align-items: flex-start;
    padding-top: 5px;
  }
  
  .auth-card {
    margin-top: 0;
    padding: 6px 10px;
  }
  
  .auth-brand-logo {
    height: 38px;
  }
  
  .auth-title {
    font-size: 20px;
    margin: 1px 0 4px;
  }
  
  .auth-form2 {
    gap: 6px;
  }
  
  .auth-input {
    height: 34px;
    padding: 5px 7px;
  }
}

/* ================================
   AUTH PAGES: FORCE NO SCROLLBAR
   (signin.html + create-account.html)
================================ */

/* Default: do NOT allow page scrolling on desktop */
.auth-page{
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* Shell centers card and fits inside viewport */
.auth-shell.auth-shell-tight{
  height: calc(100vh - 44px); /* leaves room for footer */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 16px 8px;
}

/* Card tuned to fit in one view */
.auth-card.auth-card-tight{
  width: min(520px, 92vw);
  border: 1px solid #d8dde3;
  border-radius: 4px;
  padding: 14px 20px;
  background: #fff;
}

/* Form spacing tightened */
.auth-form2.auth-form-tight{
  gap: 8px;
}

.auth-row.auth-row-compact{
  margin: 6px 0 6px;
  font-size: 12.5px;
}

.auth-input.auth-input-tight{
  height: 38px;
  font-size: 13.5px;
}

/* Button slightly shorter to fit viewport */
.auth-submit.auth-submit-tight{
  height: 42px;
  margin-top: 6px;
}

/* Consent block compact */
.auth-consent{
  background: #f4f6f8;
  border-radius: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 2px;
}

.auth-consent-text{
  font-size: 12px;
  line-height: 1.35;
  color: #111;
  margin-bottom: 8px;
}

.auth-consent-actions{
  display: flex;
  gap: 10px;
}

.auth-consent-btn{
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.35);
  background: #fff;
  color: #111;
  font-weight: 600;
  cursor: pointer;
}

.auth-consent-btn.primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

.auth-consent-btn.selected{
  outline: 2px solid rgba(11, 101, 194, 0.35);
  outline-offset: 1px;
}

.auth-note{
  font-size: 11.5px;
  line-height: 1.35;
  color: #111;
  opacity: 0.95;
  margin-top: 6px;
}

/* Footer stays visible and does not create scroll */
.auth-page footer.auth-footer{
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 12px;
  border-top: 1px solid #e6e9ee;
  background: transparent !important;
  color: rgba(0,0,0,0.7) !important;
  font-size: 12px;
}

/* On small screens, allow scroll (otherwise content will be cut) */
@media (max-width: 520px), (max-height: 720px){
  .auth-page{
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }
  .auth-shell.auth-shell-tight{
    height: auto;
    min-height: calc(100vh - 44px);
  }
}

.subscription-card{
  margin: 16px 0 6px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  background: rgba(11,17,32,0.72);
  color: #fff;
  backdrop-filter: blur(2px);
}
.subscription-card.hidden{display:none;}
.subscription-card-title{
  font-weight: 700;
  margin-bottom: 8px;
}
.subscription-card-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 13px;
}
.subscription-k{opacity:0.8;}
.subscription-card-btn{
  display:inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0b65c2;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}
.subscription-card-btn:hover{background:#0955a3;}
@media (max-width: 760px){
  .subscription-card-grid{grid-template-columns: 1fr;}
}

body.root-gate-mode > :not(#betaGateRoot) {
  display: none !important;
}

.beta-gate-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 20% 0%, #1e293b 0%, #0f172a 60%, #020617 100%);
}

.beta-gate-root.hidden {
  display: none;
}

.beta-gate-card {
  width: min(640px, 100%);
  text-align: center;
  border-radius: 18px;
  padding: 40px 28px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 56px rgba(2, 6, 23, 0.55);
}

.beta-gate-brand {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.beta-gate-card h1 {
  margin: 20px 0 10px;
  color: #fff;
}

.beta-gate-card p {
  color: #cbd5e1;
}

.beta-gate-btn,
.beta-gate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-width: 180px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.beta-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.beta-gate-modal.hidden {
  display: none;
}

.beta-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
}

.beta-gate-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  padding: 24px 20px 20px;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.beta-gate-modal-card h2 {
  margin: 0 0 12px;
  color: #fff;
}

.beta-gate-modal-card label {
  display: block;
  margin: 10px 0 6px;
  color: #cbd5e1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beta-gate-modal-card input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 12px;
}

.beta-gate-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #ff8fb2;
  font-size: 0.92rem;
}

.beta-gate-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}



