/* ==========================================================================
   CastRemote IR - Professional Hardware Utility Stylesheet
   Modern, calm, balanced, and visually refined.
   ========================================================================== */

:root {
  --bg-base: #08090d;
  --bg-surface: #0f121a;
  --bg-card: #151924;
  --bg-card-hover: #1b2130;

  --border-subtle: #1f2533;
  --border-card: #272f42;
  --border-highlight: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.12);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Selector Dropdown */
.lang-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px 8px;
  transition: border-color 0.15s;
}

.lang-selector-wrap:hover,
.lang-selector-wrap:focus-within {
  border-color: var(--border-highlight);
}

.lang-globe {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1;
}

.lang-dropdown {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 4px 0;
}

.lang-dropdown option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #040914;
  background: var(--accent-cyan);
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.nav-cta:hover {
  background: var(--accent-cyan-hover);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 60%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text-block {
  max-width: 780px;
  margin-bottom: 40px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.hero-heading {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-cyan);
  color: #040914;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s;
}

.primary-play-btn:hover {
  background: var(--accent-cyan-hover);
  transform: translateY(-1px);
}

.secondary-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all 0.15s;
}

.secondary-btn:hover {
  color: #fff;
  border-color: var(--border-card);
  background: var(--bg-card);
}

/* Hero Graphic Showcase */
.hero-graphic-wrap {
  width: 100%;
  max-width: 980px;
}

.graphic-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: #000;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.08);
}

.graphic-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* ==========================================================================
   Story Section
   ========================================================================== */
.story-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 40px;
}

.story-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.story-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.story-text strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Workflow Screens Section
   ========================================================================== */
.workflow-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap {
  margin-bottom: 36px;
}

.section-title-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-title-wrap p {
  font-size: 1rem;
  color: var(--text-muted);
}

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

.screen-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.screen-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card);
}

.screen-preview {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.screen-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-info {
  padding: 18px 20px;
}

.screen-step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.screen-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.screen-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Cases Section
   ========================================================================== */
.cases-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}

.case-card:hover {
  border-color: var(--border-card);
}

.case-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 32px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left a,
.footer-right a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-left a:hover,
.footer-right a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-heading {
    font-size: 2.3rem;
  }

}

@media (max-width: 680px) {
  .hero-heading {
    font-size: 1.85rem;
  }
  .screens-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .story-card {
    padding: 24px 20px;
  }
}
