/* ============================================================
   Cubing Zone E-Learning — Stylesheet
   Tokens
   ============================================================ */
:root{
  --bg:        #0B0B0C;
  --surface:   #161618;
  --surface-2: #1D1D20;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --text:      #F4F2ED;
  --muted:     #A6A39B;
  --orange:    #FF6A1A;
  --gold:      #FFB23F;
  --orange-dim: rgba(255,106,26,0.14);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.12;
  letter-spacing:-0.01em;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display);
  font-size:12.5px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
}
.eyebrow::before{
  content:""; width:18px; height:2px; background:var(--orange); display:inline-block;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

section{ padding:96px 0; }
@media (max-width:768px){ section{ padding:64px 0; } }

/* Background texture: subtle facet grid like cube edges */
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:64px 64px;
  pointer-events:none;
  z-index:0;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  letter-spacing:0.01em;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--orange), var(--gold));
  color:#16100A;
  box-shadow:0 10px 30px -10px rgba(255,106,26,0.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 34px -8px rgba(255,106,26,0.7); }
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--line-2);
}
.btn-ghost:hover{ border-color:var(--orange); color:var(--gold); }
.btn-block{ width:100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,11,12,0.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:var(--container);
  margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:38px; width:auto; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:16px; line-height:1.2; }
.brand-name span{ display:block; font-size:11px; font-weight:500; color:var(--muted); letter-spacing:0.04em; }

.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:14.5px; font-weight:500; color:var(--muted);
  position:relative; padding:6px 0;
  transition:color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg, var(--orange), var(--gold));
  border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--text); border-radius:2px; }

@media (max-width: 920px){
  .nav-links{
    position:fixed; top:74px; left:0; right:0;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start;
    padding:24px 28px; gap:20px;
    transform:translateY(-110%);
    transition:transform .3s ease;
    z-index:99;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-ghost{ display:none; }
}

/* ============================================================
   Hero + CSS 3D Cube (signature element)
   ============================================================ */
.hero{
  position:relative;
  padding:100px 0 80px;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
}
@media (max-width:920px){ .hero{ grid-template-columns:1fr; padding-top:64px; text-align:left; } }

.hero-copy h1{
  font-size:clamp(38px, 5.4vw, 64px);
  margin:18px 0 22px;
}
.hero-copy h1 .accent{
  background:linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy p{
  color:var(--muted); font-size:17.5px; max-width:480px; margin-bottom:34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:40px; }
.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; }
.hero-stats div strong{
  display:block; font-family:var(--font-display); font-size:26px; color:var(--text);
}
.hero-stats div span{ font-size:13px; color:var(--muted); }

.cube-stage{
  position:relative;
  width:100%; height:420px;
  display:flex; align-items:center; justify-content:center;
  perspective:1200px;
}
.cube-glow{
  position:absolute; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,106,26,0.35), transparent 70%);
  filter:blur(10px);
  animation:pulse 4s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:0.6; transform:scale(1);} 50%{ opacity:1; transform:scale(1.08);} }

.cube3d{
  width:180px; height:180px;
  position:relative;
  transform-style:preserve-3d;
  animation:spin 14s linear infinite;
}
@keyframes spin{
  from{ transform:rotateX(-28deg) rotateY(0deg); }
  to{ transform:rotateX(-28deg) rotateY(360deg); }
}
.cube3d .face{
  position:absolute; width:180px; height:180px;
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); gap:4px;
  padding:6px;
  background:#0E0E0F;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
}
.cube3d .face span{ border-radius:3px; }
.cube3d .face.front{ transform:translateZ(90px); }
.cube3d .face.back{ transform:rotateY(180deg) translateZ(90px); }
.cube3d .face.right{ transform:rotateY(90deg) translateZ(90px); }
.cube3d .face.left{ transform:rotateY(-90deg) translateZ(90px); }
.cube3d .face.top{ transform:rotateX(90deg) translateZ(90px); }
.cube3d .face.bottom{ transform:rotateX(-90deg) translateZ(90px); }

.cube3d .face.front span{ background:var(--orange); }
.cube3d .face.back span{ background:#fff; }
.cube3d .face.right span{ background:var(--gold); }
.cube3d .face.left span{ background:#1f3b8c; }
.cube3d .face.top span{ background:#1f8c4d; }
.cube3d .face.bottom span{ background:#c4131f; }

/* ============================================================
   Section headings
   ============================================================ */
.section-head{ max-width:620px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(28px,3.6vw,40px); margin-top:14px; }
.section-head p{ color:var(--muted); margin-top:14px; font-size:16px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ============================================================
   Feature / value cards
   ============================================================ */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:920px){ .grid-3, .grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .grid-3, .grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px 26px;
  transition:border-color .25s ease, transform .25s ease;
}
.card:hover{ border-color:rgba(255,106,26,0.4); transform:translateY(-4px); }
.card .icon{
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:var(--orange-dim);
  color:var(--orange);
  margin-bottom:18px;
  font-size:20px;
}
.card h3{ font-size:18px; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:14.5px; }

/* ============================================================
   Split / about preview
   ============================================================ */
.split{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
}
@media (max-width:860px){ .split{ grid-template-columns:1fr; gap:36px; } }
.split-media{
  position:relative; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--line);
}
.split-media img{ width:100%; height:100%; object-fit:cover; }
.stat-pill{
  position:absolute; bottom:18px; left:18px;
  background:rgba(11,11,12,0.85); backdrop-filter:blur(8px);
  border:1px solid var(--line-2);
  border-radius:var(--radius-sm);
  padding:14px 18px;
}
.stat-pill strong{ font-family:var(--font-display); font-size:22px; color:var(--gold); display:block; }
.stat-pill span{ font-size:12px; color:var(--muted); }

.check-list li{
  display:flex; gap:12px; align-items:flex-start;
  margin-bottom:14px; color:var(--muted); font-size:15px;
}
.check-list li::before{
  content:"✓"; color:var(--orange); font-weight:700; flex:none;
  width:22px; height:22px; border-radius:50%; background:var(--orange-dim);
  display:flex; align-items:center; justify-content:center; font-size:12px;
  margin-top:2px;
}

/* ============================================================
   Mode tabs (Online / Offline)
   ============================================================ */
.mode-cards{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:768px){ .mode-cards{ grid-template-columns:1fr; } }
.mode-card{
  border:1px solid var(--line); border-radius:var(--radius);
  padding:36px; background:linear-gradient(180deg, var(--surface), var(--bg));
  position:relative; overflow:hidden;
}
.mode-card.featured{ border-color:rgba(255,106,26,0.45); }
.mode-card .tag{
  position:absolute; top:0; right:0;
  background:linear-gradient(135deg, var(--orange), var(--gold));
  color:#16100A; font-family:var(--font-display); font-size:11.5px; font-weight:700;
  padding:6px 16px; border-bottom-left-radius:10px;
}
.mode-card h3{ font-size:22px; margin-bottom:10px; }
.mode-card p.desc{ color:var(--muted); font-size:14.5px; margin-bottom:22px; }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; height:100%;
}
.testi-card .stars{ color:var(--gold); font-size:14px; margin-bottom:14px; letter-spacing:2px; }
.testi-card p{ color:var(--text); font-size:15px; margin-bottom:20px; }
.testi-who{ display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(135deg, var(--orange), var(--gold));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; color:#16100A; font-size:14px;
}
.testi-who strong{ font-size:14px; display:block; }
.testi-who span{ font-size:12.5px; color:var(--muted); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  background:linear-gradient(135deg, rgba(255,106,26,0.16), rgba(255,178,63,0.06));
  border:1px solid rgba(255,106,26,0.3);
  border-radius:24px;
  padding:60px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ font-size:clamp(24px,3vw,32px); max-width:480px; }
.cta-band p{ color:var(--muted); margin-top:10px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  border-top:1px solid var(--line);
  padding:64px 0 28px;
  background:var(--surface);
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  margin-bottom:48px;
}
@media (max-width:768px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:32px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; }
.footer-col h4{ font-size:13.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{ color:var(--text); font-size:14.5px; opacity:0.85; }
.footer-col ul li a:hover{ color:var(--orange); opacity:1; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding-top:24px; border-top:1px solid var(--line);
  color:var(--muted); font-size:13px;
}
.socials{ display:flex; gap:14px; }
.socials a{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center; font-size:14px;
  transition:border-color .2s ease, color .2s ease;
}
.socials a:hover{ border-color:var(--orange); color:var(--orange); }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero{
  padding:80px 0 50px;
  text-align:center;
  position:relative;
}
.page-hero h1{ font-size:clamp(32px,5vw,52px); margin-top:16px; }
.page-hero p{ color:var(--muted); max-width:560px; margin:18px auto 0; font-size:16px; }
.breadcrumb{ color:var(--muted); font-size:13.5px; margin-top:10px; }
.breadcrumb span{ color:var(--gold); }

/* ============================================================
   Timeline (About page)
   ============================================================ */
.timeline{ position:relative; padding-left:30px; border-left:2px solid var(--line); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-37px; top:2px;
  width:12px; height:12px; border-radius:50%;
  background:var(--orange); box-shadow:0 0 0 4px var(--orange-dim);
}
.timeline-item h4{ font-size:16px; margin-bottom:6px; }
.timeline-item p{ color:var(--muted); font-size:14.5px; }
.timeline-item .when{ color:var(--gold); font-size:12.5px; font-family:var(--font-display); letter-spacing:0.04em; }

/* ============================================================
   Team / Values
   ============================================================ */
.value-row{ display:flex; gap:18px; align-items:flex-start; margin-bottom:30px; }
.value-row .num{
  font-family:var(--font-display); font-size:14px; color:var(--orange);
  border:1px solid var(--line-2); border-radius:50%; width:34px; height:34px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.value-row h4{ font-size:16.5px; margin-bottom:6px; }
.value-row p{ color:var(--muted); font-size:14.5px; }

/* ============================================================
   Course cards
   ============================================================ */
.course-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
}
.course-top{
  padding:24px 24px 0; display:flex; justify-content:space-between; align-items:flex-start;
}
.level-badge{
  font-size:11.5px; font-family:var(--font-display); font-weight:700; letter-spacing:0.05em;
  padding:5px 12px; border-radius:999px; text-transform:uppercase;
}
.level-badge.beginner{ background:rgba(31,140,77,0.18); color:#4ADE80; }
.level-badge.intermediate{ background:var(--orange-dim); color:var(--gold); }
.level-badge.advanced{ background:rgba(196,19,31,0.18); color:#FF6B6B; }
.course-card .price{ font-family:var(--font-display); font-weight:700; color:var(--text); }
.course-body{ padding:18px 24px 26px; flex:1; display:flex; flex-direction:column; }
.course-body h3{ font-size:19px; margin-bottom:10px; }
.course-body p{ color:var(--muted); font-size:14.5px; margin-bottom:18px; }
.course-meta{ display:flex; gap:18px; margin-bottom:20px; color:var(--muted); font-size:13px; }
.course-meta span{ display:flex; align-items:center; gap:6px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--text);
  padding:22px 0; display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-display); font-size:16px; font-weight:600;
}
.faq-q .plus{ font-size:22px; color:var(--orange); transition:transform .25s ease; flex:none; margin-left:16px; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden; transition:max-height .3s ease;
  color:var(--muted); font-size:14.5px;
}
.faq-a-inner{ padding-bottom:22px; max-width:680px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:50px; }
@media (max-width:920px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px;
}
.info-row{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
.info-row:last-child{ border-bottom:none; }
.info-row .icon{
  width:42px; height:42px; border-radius:10px; background:var(--orange-dim); color:var(--orange);
  display:flex; align-items:center; justify-content:center; flex:none; font-size:17px;
}
.info-row strong{ display:block; font-size:14.5px; margin-bottom:4px; }
.info-row span{ color:var(--muted); font-size:14px; }

form.contact-form{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:36px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; color:var(--muted); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 16px;
  background:var(--bg); border:1px solid var(--line-2); border-radius:var(--radius-sm);
  color:var(--text); font-family:var(--font-body); font-size:14.5px;
  transition:border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--orange);
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:var(--muted); margin-top:14px; }
.form-status{ margin-top:16px; font-size:14px; }
.form-status.success{ color:#4ADE80; }
.form-status.error{ color:#FF6B6B; }

/* map placeholder */
.map-wrap{
  margin-top:60px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  height:340px;
}
.map-wrap iframe{ width:100%; height:100%; border:0; filter:grayscale(0.4) invert(0.92) contrast(0.9); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* misc */
.text-center{ text-align:center; }
.mt-large{ margin-top:80px; }
