/* ==========================================================================
   CYPHRA™ Web Browser Official Website
   Custom Dark Glassmorphism Design System (Zero Tracking, Ultra Fast)
   ========================================================================== */

:root {
  --bg-main: #06080d;
  --bg-card: #0b111a;
  --bg-card-hover: #0f172a;
  --bg-elevated: #162030;
  --border-subtle: #182232;
  --border-active: #38bdf8;
  --text-bright: #f8fafc;
  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-emerald: #10b981;
  --accent-indigo: #818cf8;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.25;
}

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

a:hover {
  color: #7dd3fc;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-bright);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-bright);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-disabled {
  background: #1e293b;
  color: #64748b;
  border-color: #334155;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px auto;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Showcase & App Frame */
.showcase-wrapper {
  margin-top: 50px;
  position: relative;
}

.browser-mockup-frame {
  background: #0b111a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), var(--shadow-glow);
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
}

.mockup-header {
  background: #080c14;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-address {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 5px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-tabs-bar {
  display: flex;
  background: #080c14;
  padding: 6px 14px 0 14px;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.mockup-tab-item {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.mockup-tab-item.active {
  background: #0b111a;
  color: var(--accent-cyan);
  border-top: 2px solid var(--accent-cyan);
}

.mockup-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Cards Grid */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: #080c14;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}

.comparison-table td {
  font-size: 0.9rem;
}

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

.comparison-table th.highlight, .comparison-table td.highlight {
  background: rgba(56, 189, 248, 0.05);
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
}

.table-check {
  color: var(--accent-emerald);
  font-weight: 800;
}

.table-cross {
  color: var(--accent-rose);
  font-weight: 800;
}

/* Platform Download Cards */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.download-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.download-card.highlight {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--shadow-glow);
}

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

.platform-icon {
  font-size: 2rem;
}

.platform-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.platform-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.checksum-box {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
  word-break: break-all;
}

.copy-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* Portfolio Section */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.portfolio-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.portfolio-tag {
  font-size: 0.725rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Tabs & Installation Instructions */
.tab-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  background: #080c14;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent-cyan);
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent-cyan);
}

.tab-content {
  padding: 28px;
  display: none;
}

.tab-content.active {
  display: block;
}

.code-block {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #38bdf8;
  font-size: 0.875rem;
  margin: 12px 0;
  overflow-x: auto;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 30px 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer-row-1 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.footer-row-2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.footer-row-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
  transition: var(--transition);
}

.footer-icon-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.make-in-india-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #162030;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-bright);
}

.footer-row-4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-link-pill {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.footer-link-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-bright);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #080c14;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  
  .nav-links.active { display: flex; }
  .mobile-menu-toggle { display: block; }
  .header-actions .btn { display: none; }
}
