/* ============================================================
   Lumora Apps – Sudoku Mentor Website
   Stylesheet
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --primary:          #1565C0;
  --primary-dark:     #0D47A1;
  --primary-light:    #E3F2FD;
  --hero-gradient:    linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);

  --text-dark:        #1A202C;
  --text-medium:      #4A5568;
  --text-light:       #718096;

  --bg-white:         #FFFFFF;
  --bg-light:         #F7FAFC;
  --border:           #E2E8F0;

  --success:          #2F855A;
  --success-bg:       #F0FFF4;

  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
  --shadow:           0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:        0 20px 48px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-phone:     0 32px 64px rgba(0,0,0,0.28), 0 12px 24px rgba(0,0,0,0.14);

  --radius-sm:        8px;
  --radius:           12px;
  --radius-lg:        20px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.28;
  font-weight: 700;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  color: var(--text-medium);
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-light);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-brand:hover {
  text-decoration: none;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-brand-name span {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* ---- Hero ---- */
.hero {
  background: var(--hero-gradient);
  padding: 80px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-white);
  clip-path: ellipse(56% 100% at 50% 100%);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.hero-content {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #66BB6A;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
}

.hero h1 em {
  color: #90CAF9;
  font-style: normal;
}

.hero-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
}

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

/* ---- Buttons ---- */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: white;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-play:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-play-text small {
  font-size: 0.68rem;
  opacity: 0.75;
}

.btn-play-text strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.35);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  color: white;
}

/* ---- Phone Mockup ---- */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone {
  width: 260px;
  border-radius: 44px;
  border: 8px solid rgba(255,255,255,0.18);
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  background: #111;
  flex-shrink: 0;
}

.phone img {
  width: 100%;
  display: block;
}

.phone-sm {
  width: 210px;
  border-radius: 36px;
  border-width: 6px;
}

.phone-dark {
  border-color: rgba(255,255,255,0.12);
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1rem;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 18px;
}

.ic-green   { background: #F0FFF4; }
.ic-blue    { background: var(--primary-light); }
.ic-purple  { background: #F3E8FF; }
.ic-orange  { background: #FFF7ED; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---- Screenshot Gallery ---- */
.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 24px 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--border);
}

.gallery-scroll::-webkit-scrollbar        { height: 5px; }
.gallery-scroll::-webkit-scrollbar-track  { background: var(--border); border-radius: 3px; }
.gallery-scroll::-webkit-scrollbar-thumb  { background: var(--primary); border-radius: 3px; }

.gallery-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  text-align: center;
}

.gallery-item .phone {
  width: 195px;
  border-radius: 36px;
  border: 6px solid #2d3748;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.gallery-item p {
  font-size: 0.82rem;
  margin-top: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ---- Learn Mode ---- */
.learn-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.learn-content .label {
  display: block;
  margin-bottom: 10px;
}

.learn-content h2 {
  margin-bottom: 16px;
}

.learn-content > p {
  margin-bottom: 28px;
}

.strategy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strategy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-medium);
}

.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-basic    { background: var(--primary-light); color: var(--primary-dark); }
.badge-medium   { background: #FFF7ED; color: #C05621; }
.badge-advanced { background: #F3E8FF; color: #6B21A8; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}

.pricing-card-premium {
  border-color: var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.limit {
  color: var(--text-light);
}

.pricing-footnote {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-light);
  margin-top: 24px;
}

/* ---- Privacy Highlight ---- */
.privacy-section {
  background: var(--hero-gradient);
  padding: 88px 0;
  text-align: center;
}

.privacy-section h2 {
  color: white;
  margin-bottom: 16px;
}

.privacy-section > .container > p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 56px;
}

.privacy-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.pstat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.pstat h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 4px;
}

.pstat p {
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  margin: 0;
}

/* ---- Footer ---- */
.footer {
  background: #1A202C;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-nav h4 {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* ---- Sub-page Hero ---- */
.subpage-hero {
  background: var(--hero-gradient);
  padding: 56px 0;
  text-align: center;
}

.subpage-hero h1 {
  color: white;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.subpage-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
}

/* ---- Content Pages ---- */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 88px;
}

.content-page h2 {
  font-size: 1.35rem;
  margin: 40px 0 14px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.content-page h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.content-page h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  color: var(--text-dark);
}

.content-page p {
  margin-bottom: 14px;
}

.content-page ul,
.content-page ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.content-page li {
  color: var(--text-medium);
  margin-bottom: 6px;
  line-height: 1.65;
}

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 24px 0;
}

.info-box p {
  color: var(--primary-dark);
  margin: 0;
  font-size: 0.93rem;
}

.success-box {
  background: var(--success-bg);
  border-left: 4px solid var(--success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 24px 0;
}

.success-box p {
  color: #276749;
  margin: 0;
  font-size: 0.93rem;
}

/* ---- Support / FAQ ---- */
.faq-list {
  margin-top: 0;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 0.93rem;
  margin: 0;
}

.contact-card {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-top: 56px;
}

.contact-card h2 {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}

.contact-card p {
  margin-bottom: 24px;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-mail:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

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

  .hero-pills { justify-content: center; }
  .hero-actions { justify-content: center; }

  .phone-wrap {
    order: -1;
  }

  .learn-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .learn-content .label { display: block; }

  .strategy-list li { justify-content: center; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

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

  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }

  .phone { width: 210px; border-radius: 36px; }

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

  .privacy-stats { gap: 32px; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
