/* ── Home page, in the portal's design ──────────────────────────────────────
   Same tokens, gradients and moving borders as portal.birlikteingilizce.com,
   so the site and the portal read as one product. Only index.html uses this. */

:root {
  --bg: #12151f;
  --surface: #1a1e2b;
  --surface-2: #212637;
  --surface-3: #282e40;
  --text: #e1e6ef;
  --muted: #8693a8;
  --muted-2: #5a6577;
  --border: #2a3142;
  --border-2: #343d50;
  --green: #52b788;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .18);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .18);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .45), 0 4px 8px rgba(0, 0, 0, .22);
  --grad: linear-gradient(90deg, #3b82f6, #8b5cf6 60%, #d946ef);
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.aur { background: linear-gradient(90deg, #60a5fa, #a78bfa, #e879f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp { flex: 1; }

/* ── Buttons, tags, cards ───────────────────────────────────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; border: 0; border-radius: 12px; font-weight: 700; font-size: .92rem; padding: 13px 20px; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-g { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(139, 92, 246, .3); }
.btn-g:hover { box-shadow: 0 10px 30px rgba(139, 92, 246, .45); }
.btn-glass { background: rgba(18, 21, 31, .4); border: 1px solid rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(18, 21, 31, .6); }
.btn-line { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.btn-line:hover { border-color: #8b5cf6; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag-v { background: rgba(139, 92, 246, .18); color: #c4b5fd; }
.tag-o { background: rgba(249, 115, 22, .16); color: #fdba74; }
.tag-t { background: rgba(20, 184, 166, .16); color: #5eead4; }

.card { border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }

/* Moving borders, as the portal's ShineBorder draws them */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes turn { to { --a: 360deg; } }
.shine::before, .warm::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: turn 7s linear infinite;
}
.shine::before { background: conic-gradient(from var(--a), #8b5cf6, #22d3ee, transparent 30%, transparent 70%, #8b5cf6); }
.warm::before { background: conic-gradient(from var(--a), #fb923c, #f59e0b, transparent 30%, transparent 70%, #fb923c); }

/* Entrances, like the portal's BlurFade */
.fade { opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.fade.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; filter: none; transition: none; }
  .shine::before, .warm::before { animation: none; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { font-weight: 800; font-size: 1rem; letter-spacing: .02em; color: var(--green); white-space: nowrap; }
.brand span { color: #fff; }
.links { display: none; align-items: center; gap: 26px; margin-right: 18px; }
.links a { color: rgba(255, 255, 255, .85); font-size: .88rem; font-weight: 600; }
.links a:hover { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(18, 21, 31, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .84rem; font-weight: 600; height: 38px; padding: 0 15px; color: #fff; cursor: pointer; }
.pill:hover { border-color: rgba(255, 255, 255, .35); }
.burger { width: 38px; padding: 0; justify-content: center; }
.burger i { display: block; width: 14px; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff; }

.menu { position: fixed; inset: 0; z-index: 40; background: rgba(11, 13, 20, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; }
.menu.open { display: block; }
.menu .sheet { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(env(safe-area-inset-top) + 72px); padding: 8px; }
.menu .sheet a { display: block; padding: 13px 14px; font-weight: 600; border-radius: 10px; }
.menu .sheet a:hover { background: var(--surface-3); }
.menu .sheet .btn { margin-top: 6px; width: 100%; }

/* ── Hero: the site's photos, darkened into the page ────────────────────── */

.hero { position: relative; overflow: hidden; padding-top: calc(env(safe-area-inset-top) + 120px); }
.hero .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero .photo.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 13, 20, .6) 0%, rgba(11, 13, 20, .38) 32%, rgba(18, 21, 31, .86) 70%, var(--bg) 100%); }
.hero > .wrap { position: relative; z-index: 2; }
.hero h1 { margin: 0; font-size: clamp(2.05rem, 5.4vw, 3.3rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: #fff; max-width: 560px; }
.hero .sub { margin: 12px 0 0; color: rgba(225, 230, 239, .82); font-size: 1rem; max-width: 470px; }
.hero .sub b { color: #fff; }
.hero .row { display: flex; gap: 8px; margin-top: 22px; }
.hero .row .btn-g { flex: 1; }
.peek { display: flex; justify-content: center; margin-top: 34px; height: 156px; overflow: hidden; }
.peek .mini { width: 240px; flex-basis: 240px; border-bottom: 0; border-radius: 22px 22px 0 0; }
.hero-screens { display: none; }

/* A portal screen, drawn small inside a phone */
.mini { width: 200px; flex: 0 0 200px; border-radius: 22px; border: 5px solid #2a3142; background: #12151f; box-shadow: var(--shadow-lg); padding: 10px 10px 14px; font-size: .62rem; position: relative; overflow: hidden; }
.mini .tb { display: flex; gap: 5px; align-items: center; margin-bottom: 8px; }
.mini .tb i { width: 18px; height: 18px; border-radius: 9px; background: #212637; border: 1px solid #2a3142; }
.mini .tb .av { background: linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #d946ef); border: 0; }
.mini h4 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.mini .t { display: block; font-size: .78rem; font-weight: 700; }
.mini .st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 7px; }
.mini .st.four { grid-template-columns: repeat(4, 1fr); }
.mini .st div { background: #1a1e2b; border: 1px solid #2a3142; border-radius: 7px; padding: 5px; }
.mini .st b { font-size: .8rem; display: block; }
.mini .st small { color: #8693a8; font-size: .5rem; }
.mini .bx { background: linear-gradient(180deg, #212637, #1a1e2b); border: 1px solid #2a3142; border-radius: 9px; padding: 8px; margin-top: 6px; position: relative; overflow: hidden; }
.mini .bx small { display: block; color: #8693a8; font-size: .54rem; }
.wt { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 10px; border: 1px solid #2a3142; background: #212637; margin-top: 5px; }
.wt i { width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0; }
.wt b { display: block; font-size: .66rem; }
.wt small { display: block; font-size: .54rem; color: #8693a8; }
.rd { font-size: .66rem; line-height: 1.6; color: #c9d1de; margin: 6px 0 0; }
.rd u { text-decoration: none; background: rgba(139, 92, 246, .28); border-radius: 3px; padding: 0 2px; color: #fff; }
.pop { position: absolute; left: 14px; right: 14px; top: 96px; background: #282e40; border: 1px solid #343d50; border-radius: 10px; padding: 8px; box-shadow: var(--shadow-lg); }
.pop .add { margin-top: 6px; background: var(--grad); color: #fff; border-radius: 7px; text-align: center; padding: 4px; font-weight: 700; }
.fix { line-height: 1.55; font-size: .62rem; }
.fix s { color: #f87171; }
.fix ins { text-decoration: none; color: #4ade80; font-weight: 700; }

/* ── Sections ───────────────────────────────────────────────────────────── */

section { scroll-margin-top: 20px; }
.kick { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec { padding-top: 46px; }
.sec h2 { margin: 6px 0 0; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 8px 0 0; font-size: .92rem; color: var(--muted); max-width: 560px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 26px; }
.stat { padding: 10px 9px; }
.stat b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.stat small { display: block; font-size: .64rem; color: var(--muted); font-weight: 600; line-height: 1.25; margin-top: 1px; }

/* Portal tour */
.tour { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 40px; scrollbar-width: none; }
.tour::-webkit-scrollbar { display: none; }
.tour .mini { overflow: visible; scroll-snap-align: start; }
.tour .lbl { position: absolute; left: -5px; right: -5px; bottom: -32px; text-align: center; font-size: .76rem; font-weight: 700; color: var(--text); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.feat .card { padding: 12px; }
.feat b { display: block; font-size: .84rem; margin-top: 6px; }
.feat small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.portal-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* Courses, each on its own photo */
.courses { display: grid; gap: 10px; margin-top: 16px; }
.course { min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; box-shadow: var(--shadow-md); }
.course > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course:hover > img { transform: scale(1.04); }
.course::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 32%, rgba(26, 30, 43, .55) 64%, rgba(26, 30, 43, .1)); z-index: 1; }
.course > *:not(img) { position: relative; z-index: 2; }
.course h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.course p { margin: 3px 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.course .tp { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(18, 21, 31, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.course .tp.tag-v { color: #c4b5fd; }
.course .tp.tag-o { color: #fdba74; }
.course .by { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: .74rem; color: var(--muted); }
.face { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); flex-shrink: 0; }
.face.lg { width: 52px; height: 52px; }

/* Testimonials */
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(300px, 82vw); padding: 16px; scroll-snap-align: start; display: flex; flex-direction: column; }
.quote p { margin: 0; font-size: .86rem; line-height: 1.55; flex: 1; }
.quote .by { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.quote .by .face { width: 34px; height: 34px; }
.quote .by b { display: block; font-size: .8rem; }
.quote .by small { display: block; font-size: .7rem; color: var(--muted); }
.qm { font-size: 2.4rem; line-height: .6; font-weight: 800; display: block; height: 18px; }
.dots { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.dots button { width: 6px; height: 6px; padding: 0; margin: 0; border: 0; border-radius: 3px; background: var(--border-2); cursor: pointer; transition: width .2s; }
.dots button.on { width: 18px; background: var(--grad); }

/* Teachers */
.teachers { display: grid; gap: 8px; margin-top: 16px; }
.teach { padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.teach b { display: block; font-size: .94rem; }
.teach .role { display: block; font-size: .7rem; font-weight: 700; color: #c4b5fd; }
.teach small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* Closing card */
.close-card { margin-top: 46px; padding: 22px 18px; text-align: center; }
.close-card b { display: block; font-size: 1.15rem; }
.close-card p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.close-card .btn { margin-top: 14px; width: 100%; max-width: 340px; }

footer { margin-top: 46px; border-top: 1px solid var(--border); padding: 22px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .8rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; }
footer b { display: block; color: var(--text); font-size: .9rem; margin-bottom: 4px; }
footer a:hover { color: var(--text); }

/* ── Demo lesson form ───────────────────────────────────────────────────── */

.popup { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(11, 13, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; padding: 16px; }
.popup-content { max-width: 420px; margin: 8vh auto 0; padding: 22px 18px 18px; }
.popup h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.popup .lead { margin-top: 4px; font-size: .84rem; }
.popup .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-3); color: var(--muted); font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.popup form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.popup input, .popup select, .popup textarea { width: 100%; margin: 0; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; padding: 11px 12px; outline: none; }
.popup input:focus, .popup select:focus, .popup textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.popup select:invalid { color: var(--muted-2); }
.popup textarea { min-height: 96px; resize: vertical; }
.popup ::placeholder { color: var(--muted-2); }
.popup form .btn { margin-top: 6px; }
#form-complete { text-align: center; padding: 18px 0 8px; }
#form-complete p { color: var(--muted); margin: 6px 0 0; }

/* ── Wider screens ──────────────────────────────────────────────────────── */

@media (min-width: 700px) {
  :root { --gutter: 28px; }
  .courses { grid-template-columns: repeat(3, 1fr); }
  .teachers { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 14px; }
  .stat b { font-size: 1.6rem; }
  .stat small { font-size: .76rem; }
  .hero .row .btn-g { flex: 0 0 auto; }
  .portal-cta { flex-direction: row; }
}

@media (min-width: 980px) {
  .links { display: flex; }
  .burger { display: none; }
  .hero { padding-top: 68px; }
  .hero::after { background: linear-gradient(90deg, rgba(11, 13, 20, .72) 0%, rgba(11, 13, 20, .25) 55%, transparent 80%), linear-gradient(180deg, rgba(11, 13, 20, .55) 0%, rgba(11, 13, 20, .3) 40%, rgba(18, 21, 31, .85) 82%, var(--bg) 100%); }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 10px; min-height: 560px; }
  .peek { display: none; }
  .hero-screens { display: block; position: relative; height: 400px; }
  .hero-screens .back { position: absolute; right: 170px; top: 50px; transform: rotate(-5deg); width: 200px; opacity: .92; }
  .hero-screens .front { position: absolute; right: 10px; top: 0; width: 220px; }
  .tour { overflow: visible; justify-content: space-between; margin: 18px 0 0; padding: 4px 0 44px; }
  .tour .mini { flex: 0 0 23%; width: 23%; }
  .quote { flex-basis: calc((100% - 20px) / 3); }
  .sec { padding-top: 70px; }
}
