/* ChatGPT vs Claude vs Gemini: companion page.
   Layout language from the Claude and Gemini reference pages, in the brand's dark green palette. */

@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Bangla"; src: url("../assets/fonts/noto-bengali.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0964, U+0980-09FF, U+200C-200D; }

:root {
  color-scheme: dark;
  --bg: #07120c;
  --bg-2: #0c1d13;
  --ink: #f2f7f3;
  --ink-2: #b4c6ba;
  --sage: #b8d8c2;
  --accent: #8fd8a8;
  --accent-ink: #06210f;
  --warn: #e8cf9a;
  --line: rgba(200, 235, 212, .16);
  --glass: linear-gradient(140deg, rgba(190, 240, 208, .10), rgba(190, 240, 208, .025) 46%, rgba(190, 240, 208, .05));
  --sheen: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 22px rgba(255, 255, 255, .03);
  --display: "Space Grotesk", "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Bricolage Grotesque", "Noto Bangla", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --r: 24px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(900px 560px at 82% -60px, rgba(120, 200, 150, .20), transparent 65%),
    radial-gradient(760px 640px at -8% 620px, rgba(79, 132, 98, .20), transparent 65%),
    linear-gradient(180deg, #0e2417 0, #07120c 1100px) var(--bg) no-repeat;
}
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045; background: url("../assets/images/grain.webp") 0 0 / 128px 128px; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: 100%; max-width: 1392px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glass { background: var(--glass), rgba(12, 32, 21, .55); border: 1px solid var(--line); box-shadow: var(--sheen); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 90; padding: 10px 18px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--glass), rgba(18, 44, 29, .7); box-shadow: var(--sheen);
  font-weight: 600; font-size: 16px; line-height: 1.25; text-align: center; transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { border-color: rgba(143, 216, 168, .6); background-color: rgba(38, 84, 58, .8); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #a9e6bd, #7fcd9a); border-color: rgba(255, 255, 255, .35); color: var(--accent-ink); }
.btn.primary:hover { background: linear-gradient(180deg, #bdf0cd, #8fd8a8); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter) 0; pointer-events: none; }
.nav-in {
  pointer-events: auto; position: relative; max-width: 1120px; min-height: 62px; margin-inline: auto; padding: 0 12px 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 99px; border: 1px solid rgba(220, 245, 228, .2);
  background: rgba(9, 24, 15, .78); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 34px -14px rgba(0, 0, 0, .6);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 600 17px/1 var(--display); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; font-size: 15px; font-weight: 500; color: #cfe0d5; transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; background: rgba(143, 216, 168, .16); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(143, 216, 168, .1); }

/* Hero */
.hero { padding-block: clamp(116px, 13vw, 168px) clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
h1 { font: 600 clamp(42px, 5.5vw, 80px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.hero-sub { margin-top: 18px; font: italic 400 clamp(25px, 2.5vw, 36px)/1.15 var(--serif); color: var(--sage); text-wrap: balance; }
.hero-text { margin-top: 20px; max-width: 56ch; color: var(--ink-2); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero result board */
.board { border-radius: 28px; padding: clamp(12px, 1.6vw, 22px); }
.board table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board col.t { width: 28%; }
.board th, .board td { padding: 0; font-weight: 400; vertical-align: middle; }
.board thead th { padding: 6px 4px 18px; text-align: center; font: 600 18px/1.2 var(--display); }
.board thead small { display: block; margin-top: 3px; font: 400 14px/1.3 var(--body); color: var(--ink-2); }
.board tbody tr { border-top: 1px solid var(--line); }
.board tbody th { text-align: left; }
.board tbody th a { display: flex; align-items: center; min-height: 72px; padding: 8px; margin-right: 8px; border-radius: 14px; font: 600 17px/1.25 var(--display); transition: background-color .2s; }
.board tbody th a:hover { background: rgba(143, 216, 168, .12); }
.board tbody td { padding: 8px 4px; text-align: center; font-size: 15px; line-height: 1.25; color: var(--ink-2); }
.mark { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: rgba(143, 216, 168, .18); color: var(--accent); }
.mark .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.no .mark { background: rgba(232, 207, 154, .13); color: var(--warn); }
.logo { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fbfdfb; }
.logo img { width: 30px; height: 30px; }
.logo.gpt img { width: 36px; height: 36px; }
.board .logo { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 18px; }
.board .logo img { width: 38px; height: 38px; }
.board .logo.gpt img { width: 46px; height: 46px; }

/* Sections */
.sec { padding-block: clamp(56px, 7vw, 108px); border-top: 1px solid var(--line); }
.sec:nth-of-type(odd) { background: rgba(20, 52, 33, .28); }
.sec-head { max-width: 760px; margin-bottom: clamp(26px, 3vw, 40px); }
h2 { font: 600 clamp(34px, 4vw, 56px)/1.05 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* Prompt box */
.prompt { border-radius: var(--r); margin-bottom: clamp(22px, 2.6vw, 36px); overflow: hidden; }
.prompt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 16px 16px 26px; border-bottom: 1px solid var(--line); }
.prompt-head h3 { font: 600 20px/1.25 var(--display); }
.prompt-body { position: relative; max-height: 264px; padding: 22px 26px 8px; overflow: hidden; background: rgba(4, 12, 8, .45); }
.prompt-body:focus-visible { outline-offset: -3px; }
.prompt-body::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(180deg, rgba(7, 19, 12, 0), #07140d); pointer-events: none; }
.prompt.open .prompt-body { max-height: none; }
.prompt.open .prompt-body::after { display: none; }
.prompt-text { max-width: 96ch; color: #dbe8df; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.prompt-text > * { margin: 0 0 14px; }
.prompt-text h4 { margin-top: 26px; color: #fff; line-height: 1.25; font-family: var(--display); font-weight: 600; }
.prompt-text h4:first-child { margin-top: 0; }
.prompt-text .s1 { font-size: 25px; }
.prompt-text .s2 { font-size: 21px; }
.prompt-text .s3 { font-size: 18px; }
.prompt-text ul, .prompt-text ol { padding-left: 26px; }
.prompt-text ul { list-style: disc; }
.prompt-text ol { list-style: decimal; }
.prompt-text li { margin-bottom: 5px; }
.prompt-text li::marker { color: var(--accent); }
.prompt-text strong { color: #fff; font-weight: 600; }
.prompt-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prompt-text code { padding: 1px 6px; border-radius: 6px; background: rgba(143, 216, 168, .14); color: var(--sage); font-size: 15px; }
.prompt-foot { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 26px 18px; background: rgba(4, 12, 8, .45); }
.copied { background: rgba(143, 216, 168, .24); border-color: var(--accent); }

/* Result cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.card { display: flex; flex-direction: column; border-radius: var(--r); padding: 14px; transition: border-color .25s; }
.card:hover { border-color: rgba(143, 216, 168, .42); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; }
.card-head h3 { font: 600 22px/1.2 var(--display); }
.chip { margin-left: auto; padding: 5px 12px; border-radius: 99px; background: rgba(143, 216, 168, .16); color: var(--sage); font-size: 14px; line-height: 1.3; text-align: center; }
.chip.no { background: rgba(232, 207, 154, .12); color: var(--warn); }
.media { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; border-radius: 16px; overflow: hidden; background: #081a10; }
.media > a, .shot { display: block; width: 100%; padding: 0; border: 0; background: none; }
.shot { position: relative; cursor: zoom-in; }
.shot:focus-visible, .media > a:focus-visible { outline-offset: -3px; }
.shot img, .media > a img { width: 100%; height: auto; }
.tap { display: inline-flex; align-items: center; gap: 7px; }
.tap .icon { width: 17px; height: 17px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px 4px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.card-foot .btn { flex: 1 1 auto; }
.state { padding: clamp(20px, 2vw, 30px); display: grid; gap: 10px; align-content: center; height: 100%; background: radial-gradient(120% 90% at 0 0, rgba(79, 132, 98, .34), transparent 70%), #081a10; }
.state .icon { width: 30px; height: 30px; color: var(--warn); }
.state strong { font: 600 23px/1.2 var(--display); color: #fff; }
.state p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.state ul { display: grid; gap: 0; margin-top: 8px; }
.state li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.35; }
.state li span:last-child { color: var(--ink-2); text-align: right; }

/* Video */
.player { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-start { position: absolute; inset: 0; padding: 0; border: 0; background: none; }
.player-start img { width: 100%; height: 100%; object-fit: cover; }
.player-start span.big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: rgba(6, 26, 14, .74); border: 1px solid rgba(255, 255, 255, .5); transition: transform .2s, background-color .2s; }
.player-start:hover span.big { transform: scale(1.06); background: rgba(38, 100, 64, .85); }
.player-start .big .icon { width: 32px; height: 32px; fill: #fff; stroke: none; margin-left: 4px; }
.player-start span.time { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .74); font-size: 15px; line-height: 1.3; }
.player-start:focus-visible { outline-offset: -4px; }
.player-err { position: absolute; inset: auto 12px 12px; padding: 12px 14px; border-radius: 12px; background: #3a2d10; font-size: 15px; line-height: 1.4; }
#video-editing .cards { max-width: 1180px; margin-inline: auto; }

/* Contact */
.cta { padding-block: clamp(64px, 8vw, 124px); border-top: 1px solid var(--line); }
.cta-in { border-radius: 32px; padding: clamp(28px, 5vw, 72px); background: radial-gradient(90% 130% at 100% 0, rgba(143, 216, 168, .28), transparent 62%), linear-gradient(150deg, #1d4a31, #0d2416 70%); border: 1px solid rgba(200, 235, 212, .24); box-shadow: var(--sheen); }
.cta p { margin-top: 18px; max-width: 60ch; color: #cfe0d5; font-size: 18px; }
.cta-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.cta-btns .btn { min-height: 64px; font-size: 18px; }
.cta-btns .yt { width: 30px; height: auto; }
.cta .mail { display: inline-block; margin-top: 22px; padding-block: 12px; font: 600 clamp(22px, 2.4vw, 32px)/1.2 var(--display); overflow-wrap: anywhere; }
.cta .mail:hover { color: var(--accent); }
.foot { padding: 0 0 40px; color: var(--ink-2); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }
.foot p:last-child { max-width: 74ch; }

/* Lightbox */
.lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: #040b07; overflow: hidden; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb::backdrop { background: #040b07; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); }
.lb-bar p { flex: 1 1 auto; font: 600 18px/1.2 var(--display); }
.lb-bar p small { display: block; font: 400 15px/1.3 var(--body); color: var(--ink-2); }
.lb-btn { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(143, 216, 168, .1); font-size: 15px; font-weight: 600; }
.lb-btn:hover { background: rgba(143, 216, 168, .24); }
.lb-btn:disabled { opacity: .4; cursor: default; }
.lb-view { overflow: auto; display: grid; padding: 12px; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.lb-view img { margin: auto; max-width: none; height: auto; cursor: zoom-in; border-radius: 6px; }
.lb-view.zoomed img { cursor: zoom-out; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; position: absolute; inset: calc(100% + 8px) 0 auto; padding: 10px; flex-direction: column; border-radius: 24px; border: 1px solid var(--line); background: #0c2015; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 52px; padding-inline: 18px; font-size: 17px; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:first-child { grid-column: 1 / -1; }
  #image-generation .cards, #graphic-design .cards { grid-template-columns: minmax(0, 1fr); }
  .cta-btns { grid-template-columns: minmax(0, 1fr); }
  #video-editing .card:first-child .state, #landing-page .card:first-child .state { height: auto; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 108px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .board { margin-inline: -4px; padding: 12px 8px; }
  .board col.t { width: 25%; }
  .board thead th { font-size: 16px; }
  .board thead small { font-size: 13px; }
  .board .logo { width: 50px; height: 50px; border-radius: 15px; }
  .board .logo img { width: 32px; height: 32px; }
  .board .logo.gpt img { width: 38px; height: 38px; }
  .board tbody th a { padding: 6px 4px; margin-right: 2px; font-size: 15px; }
  .board tbody td { font-size: 14px; padding-inline: 2px; }
  .prompt-head { padding: 16px; }
  .prompt-head .btn { flex: 1 1 100%; }
  .prompt-body { padding: 18px 16px 8px; }
  .prompt-foot { padding: 12px 16px 16px; }
  .prompt-foot .btn { flex: 1 1 100%; }
  .card-foot .btn { flex-basis: 100%; }
  .lb-bar p { flex-basis: 100%; }
  .lb-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
