/* Accurecord AI Corporate Storefront - Custom Styles */

/* CSS Variables */
:root {
  --primary-blue: #0078d4;
  --primary-blue-dark: #005fb8;
  --secondary-blue: #3aa0ff;
  --accent-cyan: #5cd3ff;
  --accent-violet: #8c6bff;
  --accent-rose: #d07bff;
  --neutral-gray: #64748b;
  --bg-white: #ffffff;
  --text-dark: #0f172a;

  --ink-900: #0b1a2b;
  --ink-800: #152235;
  --ink-700: #22344d;
  --ink-600: #3b4b66;
  --ink-500: #5b6b86;

  --bg-0: #f5f9ff;
  --bg-1: #edf4ff;
  --bg-2: #f7f9ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(255, 255, 255, 0.96);
  --border: rgba(12, 24, 43, 0.1);
  --border-2: rgba(12, 24, 43, 0.16);
  --text-0: var(--ink-900);
  --text-1: var(--ink-700);
  --text-2: var(--ink-500);
  --azure-glow: rgba(0, 120, 212, 0.22);
  --violet-glow: rgba(140, 107, 255, 0.24);
  --shadow-soft: 0 18px 50px rgba(12, 24, 43, 0.12);
  --shadow-strong: 0 34px 90px rgba(12, 24, 43, 0.18);

  --font-sans: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, .hero-title, .tile-title, .hero-kicker {
  font-family: var(--font-display);
}

/* Azure-inspired light theme */
body.theme-azure {
  color: var(--text-0);
  background:
    radial-gradient(1200px 650px at 82% 12%, rgba(140, 107, 255, 0.22), transparent 62%),
    radial-gradient(1000px 560px at 12% 14%, rgba(0, 120, 212, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-0), #ffffff 62%);
}

.site-bg {
  position: relative;
  min-height: 100%;
}

.site-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 120, 212, 0.12) 0%, rgba(140, 107, 255, 0.12) 35%, rgba(255,255,255,0) 65%),
    radial-gradient(1100px 520px at 70% 8%, rgba(0, 120, 212, 0.16), transparent 62%),
    radial-gradient(900px 520px at 14% 28%, rgba(140, 107, 255, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(245, 249, 255, 0.88), rgba(255, 255, 255, 0.96));
  z-index: -2;
}

.site-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(115deg, rgba(0, 120, 212, 0.08) 0%, rgba(140, 107, 255, 0.0) 40%),
    radial-gradient(rgba(15, 23, 42, 0.12) 0.5px, transparent 0.6px);
  background-size: 100% 100%, 3px 3px;
  z-index: -1;
}

.header-blur {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-link-dark {
  color: var(--text-1);
  letter-spacing: 0.01em;
  font-weight: 500;
}
.nav-link-dark:hover { color: var(--primary-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.938rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #0078d4;
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-primary:hover { background: #005fb8; }

.btn-secondary {
  background: #fff;
  color: var(--text-0);
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-secondary:hover { background: #f5f5f5; border-color: #d0d0d0; }

.btn-text {
  background: transparent;
  color: #0078d4;
  font-weight: 600;
  font-size: 0.938rem;
  padding: 0.4rem 0;
  border: none;
}
.btn-text:hover { color: #005fb8; text-decoration: underline; }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--primary-blue); background: rgba(0, 120, 212, 0.08); }

.hero-kicker {
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle { color: var(--text-1); }
.micro-trust { color: var(--text-2); font-size: 0.9rem; }

.tile {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tile:hover { border-color: var(--border-2); transform: translateY(-3px); background: rgba(255,255,255,0.98); }

.tile-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.tile-title { color: var(--text-0); font-weight: 700; }
.tile-body { color: var(--text-1); }

.hero-world {
  position: absolute;
  inset: -120px -80px -140px -80px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

body.theme-azure .hero-world {
  display: none;
}

.hero-world canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(820px 400px at 50% 15%, rgba(255,255,255,0.0), rgba(255,255,255,0.72) 70%);
  z-index: 1;
  pointer-events: none;
}

.azure-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.azure-hero::before,
.azure-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 420px;
  pointer-events: none;
  z-index: 0;
}

.azure-hero::before {
  background:
    linear-gradient(120deg, rgba(0, 120, 212, 0.16) 0%, rgba(140, 107, 255, 0.16) 40%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(650px 260px at 20% 15%, rgba(0, 120, 212, 0.2), transparent 72%);
  opacity: 0.72;
}

.azure-hero::after {
  background: none;
}

.azure-hero > * {
  position: relative;
  z-index: 1;
}

.azure-hero--home {
  --hero-height: 520px;
}

.azure-hero--home::before,
.azure-hero--home::after {
  height: var(--hero-height);
}

.azure-hero--home::before {
  background:
    linear-gradient(140deg, rgba(0, 120, 212, 0.22) 0%, rgba(92, 211, 255, 0.18) 36%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(220deg, rgba(140, 107, 255, 0.22) 0%, rgba(208, 123, 255, 0.2) 35%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(780px 320px at 20% 10%, rgba(0, 120, 212, 0.24), transparent 72%);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  opacity: 0.78;
}

.azure-hero--home::after {
  background:
    linear-gradient(120deg, rgba(140, 107, 255, 0.28) 0%, rgba(208, 123, 255, 0.2) 35%, rgba(255,255,255,0) 70%);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 35% 100%);
  opacity: 0.88;
}

.home-hero-bg {
  background-image: url('/assets/images/home-hero.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
}

.modal-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-strong);
}

body.theme-azure [data-search-input]::placeholder {
  color: var(--ink-500);
}

body.theme-azure [data-search-input]:focus {
  border-color: rgba(0, 120, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.12);
}

/* Tailwind color overrides when using theme-azure on existing pages */
body.theme-azure .bg-white { background-color: rgba(255,255,255,0.92) !important; }
body.theme-azure .bg-gray-50 { background-color: #f5f9ff !important; }
body.theme-azure .bg-gray-900 { background-color: #0f172a !important; }
body.theme-azure .border-gray-200 { border-color: var(--border) !important; }
body.theme-azure .border-gray-800 { border-color: rgba(15,23,42,0.25) !important; }
body.theme-azure .shadow-sm,
body.theme-azure .shadow-lg,
body.theme-azure .shadow-xl,
body.theme-azure .shadow-2xl { box-shadow: var(--shadow-soft) !important; }

body.theme-azure .text-gray-900 { color: var(--text-0) !important; }
body.theme-azure .text-gray-800 { color: var(--text-0) !important; }
body.theme-azure .text-gray-700 { color: var(--text-1) !important; }
body.theme-azure .text-gray-600 { color: var(--text-2) !important; }
body.theme-azure .text-gray-500 { color: var(--text-2) !important; }
body.theme-azure .text-gray-400 { color: var(--text-2) !important; }

body.theme-azure .bg-blue-50 { background-color: rgba(0,120,212,0.08) !important; }
body.theme-azure .bg-green-50 { background-color: rgba(0,120,212,0.08) !important; }
body.theme-azure .bg-yellow-50 { background-color: rgba(140,107,255,0.10) !important; }
body.theme-azure .bg-purple-50 { background-color: rgba(140,107,255,0.12) !important; }
body.theme-azure .bg-orange-50 { background-color: rgba(0,120,212,0.08) !important; }

body.theme-azure .text-blue-600 { color: var(--primary-blue) !important; }
body.theme-azure .text-green-600 { color: var(--primary-blue) !important; }
body.theme-azure .text-purple-600 { color: var(--primary-blue) !important; }
body.theme-azure .text-orange-600 { color: var(--primary-blue) !important; }
body.theme-azure .border-blue-600 { border-color: rgba(0,120,212,0.65) !important; }
body.theme-azure .border-green-600 { border-color: rgba(0,120,212,0.55) !important; }
body.theme-azure .border-purple-600 { border-color: rgba(0,120,212,0.65) !important; }

body.theme-azure .bg-blue-600 { background-color: var(--primary-blue) !important; }
body.theme-azure .bg-blue-700 { background-color: var(--primary-blue-dark) !important; }
body.theme-azure .bg-purple-600 { background-color: var(--primary-blue) !important; }
body.theme-azure .bg-purple-700 { background-color: var(--primary-blue-dark) !important; }
body.theme-azure .bg-green-600 { background-color: var(--primary-blue) !important; }
body.theme-azure .bg-green-700 { background-color: var(--primary-blue-dark) !important; }
body.theme-azure .bg-orange-600 { background-color: var(--primary-blue) !important; }
body.theme-azure .bg-orange-700 { background-color: var(--primary-blue-dark) !important; }

body.theme-azure .from-blue-600 { --tw-gradient-from: #0078d4 !important; --tw-gradient-to: rgba(0, 120, 212, 0) !important; }
body.theme-azure .to-blue-600 { --tw-gradient-to: #0078d4 !important; }
body.theme-azure .from-blue-700 { --tw-gradient-from: #0364b5 !important; --tw-gradient-to: rgba(3, 100, 181, 0) !important; }
body.theme-azure .to-blue-700 { --tw-gradient-to: #0364b5 !important; }
body.theme-azure .from-purple-600 { --tw-gradient-from: #0078d4 !important; --tw-gradient-to: rgba(0, 120, 212, 0) !important; }
body.theme-azure .to-purple-600 { --tw-gradient-to: #0078d4 !important; }
body.theme-azure .from-green-600 { --tw-gradient-from: #0078d4 !important; --tw-gradient-to: rgba(0, 120, 212, 0) !important; }
body.theme-azure .to-green-600 { --tw-gradient-to: #0078d4 !important; }

body.theme-azure .hover\\:bg-white\\/5:hover {
  background-color: rgba(0, 120, 212, 0.06) !important;
}

/* Override gradient backgrounds for azure theme */
body.theme-azure .bg-gradient-to-br.from-blue-50,
body.theme-azure .bg-gradient-to-br.from-blue-50.to-white,
body.theme-azure [class*="bg-gradient-to-br"][class*="from-blue-50"] {
  background: linear-gradient(to bottom right, rgba(0,120,212,0.12), rgba(255,255,255,0.90)) !important;
}

body.theme-azure .bg-gradient-to-br.from-green-50,
body.theme-azure .bg-gradient-to-br.from-green-50.to-white,
body.theme-azure [class*="bg-gradient-to-br"][class*="from-green-50"] {
  background: linear-gradient(to bottom right, rgba(0,120,212,0.12), rgba(255,255,255,0.92)) !important;
}

body.theme-azure .bg-gradient-to-br.from-purple-50,
body.theme-azure [class*="bg-gradient-to-br"][class*="from-purple-50"] {
  background: linear-gradient(to bottom right, rgba(122,92,255,0.14), rgba(255,255,255,0.90)) !important;
}

body.theme-azure .bg-gradient-to-br.from-orange-50,
body.theme-azure [class*="bg-gradient-to-br"][class*="from-orange-50"] {
  background: linear-gradient(to bottom right, rgba(0,120,212,0.12), rgba(255,255,255,0.92)) !important;
}

body.theme-azure [class*="bg-gradient-to-r"][class*="from-purple-50"] {
  background: linear-gradient(to right, rgba(122,92,255,0.16), rgba(0,120,212,0.10)) !important;
}

/* Override card borders for azure theme */
body.theme-azure .border-blue-100,
body.theme-azure .border-blue-200 { border-color: rgba(0,120,212,0.22) !important; }
body.theme-azure .border-green-100,
body.theme-azure .border-green-200 { border-color: rgba(16,185,129,0.25) !important; }
body.theme-azure .border-purple-100,
body.theme-azure .border-purple-200 { border-color: rgba(122,92,255,0.25) !important; }
body.theme-azure .border-orange-100,
body.theme-azure .border-orange-200 { border-color: rgba(249,115,22,0.25) !important; }
body.theme-azure .border-yellow-200 { border-color: rgba(245,158,11,0.25) !important; }

/* Smooth transitions */
a, button {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eaf2ff;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 120, 212, 0.55);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Mobile menu transitions */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Hero pill tabs */
.hero-pills {
  display: inline-grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 9999px;
  padding: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 2rem;
  border-radius: 9999px;
  font-size: 0.938rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0078d4;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  gap: 0.4rem;
}

.pill-item:hover {
  background: rgba(0,120,212,0.06);
}

.pill-item.is-active {
  background: #1a3a6b;
  color: #fff;
}


/* Hero grid (2-col: text left, card right) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-mini-item {
  background: #f5f9ff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.hero-mini-item .mini-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0078d4;
  line-height: 1.2;
}

.hero-mini-item .mini-label {
  font-size: 0.8rem;
  color: var(--ink-600);
  margin-top: 0.25rem;
}

.hero-mini-item .mini-feature {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0078d4;
  line-height: 1.2;
}

/* "What is Accurecord AI" feature cards */
.what-is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.feature-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.feature-card-body {
  padding: 1.25rem;
}

.feature-card-body .card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.5rem;
}

.feature-card-body .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.feature-card-body .card-desc {
  font-size: 0.9rem;
  color: var(--ink-600);
  line-height: 1.5;
}

/* Innovation panel */
.innovation-panel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.innovation-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,15,40,0.10) 0%, rgba(0,15,40,0.75) 100%);
  z-index: 1;
}

.innovation-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
}

.panel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.panel-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 1.25rem;
  color: #fff;
  transition: background 0.25s;
}

.panel-card:hover {
  background: rgba(255,255,255,0.20);
}

.panel-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.panel-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.panel-card-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* Section headings (Azure-style) */
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-600);
  line-height: 1.6;
  max-width: 640px;
}

/* Hero text links */
.hero-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-links a {
  color: #0078d4;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-links a:hover {
  text-decoration: underline;
  color: #005fb8;
}

.hero-links .link-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-500);
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-pills {
    display: flex;
    flex-wrap: wrap;
    border-radius: 24px;
    justify-content: center;
  }

  .pill-item {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
  }

  .what-is-grid {
    grid-template-columns: 1fr;
  }

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

  .innovation-panel {
    min-height: 520px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .what-is-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }

  body {
    background: white;
  }
}
