/* ==========================================================================
   YÖFRID SOFTWARE — LINEAR & RAYCAST DESIGN SYSTEM
   Aesthetic: Ultra-refined Obsidian Dark, Micro-borders, Luminous Monochrome
   ========================================================================== */

:root {
  --bg-black: #06070a;
  --bg-surface: #0a0c10;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --bg-window-bar: #0c0e14;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-active: rgba(255, 255, 255, 0.28);
  
  --text-primary: #f7f8f8;
  --text-secondary: #8a8f98;
  --text-muted: #575c66;
  
  --accent-white: #ffffff;
  --accent-raycast: #ff6363;
  --accent-linear: #5e6ad2;
  --accent-cyan: #38bdf8;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-black);
  /* Linear subtle spotlight mesh */
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 119, 198, 0.12), transparent 70%),
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.02), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.03), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.55;
  letter-spacing: -0.011em;
}

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

/* Navbar — Linear Sleek Style */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06070a;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 450;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Raycast / Linear Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #06070a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-large {
  padding: 10px 20px;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
}

/* Keyboard Shortcut Badge inside Buttons */
kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  color: var(--text-secondary);
}

.btn-primary kbd {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: #06070a;
}

/* Hero Section — Raycast Minimalist Style */
.hero {
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pill-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 840px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Divider */
.section-header {
  text-align: center;
  margin: 90px 0 50px;
}

.section-tag {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* Alternating Feature Showcase Rows */
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 100px;
  position: relative;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-col-text {
  flex: 1 1 45%;
  max-width: 460px;
}

.feature-col-visual {
  flex: 1 1 55%;
  perspective: 1600px; /* Refined 3D depth */
}

/* Feature Tag Badge (Linear Style) */
.feature-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.feature-badge.cyan {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.05);
}

.feature-col-text h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.feature-col-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-bottom: 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #c4c7cf;
  font-size: 0.88rem;
  line-height: 1.5;
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #a1a1aa;
}

/* 3D Elevated App Window Card — Subtle Linear Floating Card */
.tilt-card-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: pointer;
}

.window-card {
  position: relative;
  background: #090b10;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 
    0 20px 45px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tilt-card-wrapper:hover .window-card {
  border-color: var(--border-hover);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Window Titlebar (Clean Linear Obsidian) */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 14px;
  background: var(--bg-window-bar);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.window-titlebar-title {
  font-size: 0.72rem;
  font-weight: 450;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.window-titlebar-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* Screenshot Body with Refined Gloss Sheen */
.window-body {
  position: relative;
  overflow: hidden;
  display: block;
}

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

/* Premiere Pro Subtle Sheen (Quiet & Realistic) */
.gloss-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.02) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.45;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  transform: translateZ(12px);
}

.tilt-card-wrapper:hover .gloss-sheen {
  opacity: 0.8;
}

/* Tall Overlay Screenshot Wrapper */
.tall-overlay-wrapper {
  max-width: 320px;
  margin: 0 auto;
}

/* Extension Showcase Banner — Bento Linear Card */
.extension-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  margin: 60px 0 90px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.extension-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%);
  pointer-events: none;
}

/* Master Feature Bento Grid (Linear Method Style) */
.matrix-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.matrix-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.matrix-col:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.matrix-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.matrix-col h4 svg {
  color: #a1a1aa;
}

.matrix-list {
  list-style: none;
}

.matrix-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 9px;
}

.matrix-list li svg {
  color: #525866; /* Understated elegant checkmark */
  flex-shrink: 0;
}

/* CTA Download Footer Section */
.cta-banner {
  text-align: center;
  padding: 70px 24px;
  margin: 50px 0;
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 520px;
  margin: 0 auto 30px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 30px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.edge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
}

/* Modal for Privacy & Terms */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  color: var(--text-secondary);
}

.modal-content h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.modal-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 18px 0 6px;
}

.modal-content p, .modal-content ul {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-content ul {
  padding-left: 20px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 70px;
  }
  
  .feature-col-text, .feature-col-visual {
    max-width: 100%;
    flex: 1 1 100%;
  }
  
  .nav-links {
    display: none;
  }
}
