/* =========================================================
   NEXA DIGITALS
   NEXA CONVERT — IMAGE CONVERTER
   Build What's Next.
========================================================= */

:root {

  --nexa-black: #000000;
  --nexa-void: #050505;
  --nexa-charcoal: #0b0b0b;
  --nexa-surface: #101010;
  --nexa-surface-2: #151515;

  --nexa-lime: #c4ff00;
  --nexa-green: #7cff00;

  --nexa-white: #ffffff;
  --nexa-gray: #9a9a9a;
  --nexa-muted: #5d5d5d;

  --nexa-border:
    rgba(255,255,255,0.10);

  --nexa-gradient:
    linear-gradient(
      90deg,
      #c4ff00 0%,
      #7cff00 100%
    );

  --ease:
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );
}


/* ---------------------------------------------------------
   RESET
--------------------------------------------------------- */

* {

  margin: 0;
  padding: 0;
  box-sizing: border-box;

}


html {

  scroll-behavior: smooth;

}


body {

  min-height: 100vh;

  background:
    var(--nexa-black);

  color:
    var(--nexa-white);

  font-family:
    "Space Grotesk",
    sans-serif;

  font-weight: 500;

  letter-spacing:
    -0.02em;

  overflow-x: hidden;

}


button,
input {

  font: inherit;

}


button {

  border: none;

}


button:focus-visible,
input:focus-visible,
.upload-zone:focus-visible {

  outline:
    2px solid var(--nexa-lime);

  outline-offset:
    3px;

}


/* ---------------------------------------------------------
   AMBIENT LIGHT
--------------------------------------------------------- */

.ambient {

  position: fixed;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  pointer-events: none;

  filter:
    blur(150px);

  opacity:
    0.045;

  z-index:
    -1;

}


.ambient-one {

  top: -280px;
  left: -230px;

  background:
    var(--nexa-lime);

}


.ambient-two {

  right: -250px;
  bottom: -300px;

  background:
    var(--nexa-green);

}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {

  position: sticky;

  top: 0;

  z-index: 100;

  border-bottom:
    1px solid var(--nexa-border);

  background:
    rgba(0,0,0,0.84);

  backdrop-filter:
    blur(18px);

}


.nav-container {

  width:
    min(1380px, 100%);

  min-height:
    76px;

  margin:
    auto;

  padding:
    0 5%;

  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

}


.nav-link {

  width:
    fit-content;

  display:
    inline-flex;

  align-items:
    center;

  gap:
    10px;

  color:
    var(--nexa-gray);

  text-decoration:
    none;

  font-size:
    12px;

  transition:
    color .25s var(--ease);

}


.nav-link:hover {

  color:
    var(--nexa-lime);

}


.back-icon {

  font-size:
    18px;

  transition:
    transform .25s var(--ease);

}


.nav-link:hover .back-icon {

  transform:
    translateX(-4px);

}


.nav-brand {

  display:
    flex;

  align-items:
    baseline;

  gap:
    7px;

  letter-spacing:
    .12em;

}


.nav-brand strong {

  font-size:
    14px;

}


.nav-brand span {

  color:
    var(--nexa-lime);

  font-size:
    8px;

  letter-spacing:
    .16em;

}


.nav-status {

  justify-self:
    end;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  color:
    var(--nexa-muted);

  font-size:
    9px;

  text-transform:
    uppercase;

  letter-spacing:
    .15em;

}


.status-dot {

  width:
    6px;

  height:
    6px;

  border-radius:
    50%;

  background:
    var(--nexa-lime);

  box-shadow:
    0 0 14px
    rgba(196,255,0,.65);

}


/* ---------------------------------------------------------
   MAIN
--------------------------------------------------------- */

.main-container {

  width:
    min(1050px, 100%);

  margin:
    auto;

  padding:
    82px 24px 60px;

}


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.hero {

  text-align:
    center;

  margin-bottom:
    52px;

}


.eyebrow {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    9px;

  margin-bottom:
    24px;

  color:
    var(--nexa-gray);

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    .20em;

  text-transform:
    uppercase;

}


.eyebrow span {

  width:
    7px;

  height:
    7px;

  border-radius:
    50%;

  background:
    var(--nexa-lime);

  box-shadow:
    0 0 16px
    rgba(196,255,0,.6);

}


.hero h1 {

  max-width:
    850px;

  margin:
    auto;

  font-size:
    clamp(
      48px,
      8vw,
      86px
    );

  line-height:
    .94;

  font-weight:
    700;

  letter-spacing:
    -.075em;

}


.hero h1 span {

  display:
    block;

  margin-top:
    5px;

  background:
    var(--nexa-gradient);

  -webkit-background-clip:
    text;

  background-clip:
    text;

  color:
    transparent;

}


.hero > p {

  max-width:
    590px;

  margin:
    26px auto 0;

  color:
    var(--nexa-gray);

  font-size:
    15px;

  line-height:
    1.75;

}


.motto {

  margin-top:
    23px;

  color:
    #555;

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    .28em;

}


.motto span {

  color:
    var(--nexa-lime);

}


/* ---------------------------------------------------------
   CONVERTER CARD
--------------------------------------------------------- */

.converter-card {

  padding:
    clamp(
      20px,
      4vw,
      42px
    );

  border:
    1px solid var(--nexa-border);

  border-radius:
    28px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.012)
    );

  box-shadow:
    0 30px 100px
    rgba(0,0,0,.55),

    inset
    0 1px
    rgba(255,255,255,.04);

}


/* ---------------------------------------------------------
   TOOL HEADER
--------------------------------------------------------- */

.tool-header {

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    30px;

  margin-bottom:
    30px;

}


.tool-number,
.section-kicker {

  display:
    block;

  color:
    var(--nexa-lime);

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    .18em;

}


.tool-header h2 {

  margin:
    9px 0 7px;

  font-size:
    clamp(
      27px,
      4vw,
      38px
    );

  line-height:
    1;

  letter-spacing:
    -.06em;

}


.tool-header p {

  color:
    var(--nexa-gray);

  font-size:
    13px;

  line-height:
    1.6;

}


.pro-badge {

  flex-shrink:
    0;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-end;

  gap:
    7px;

  color:
    var(--nexa-gray);

  font-size:
    11px;

}


.pro-badge span {

  padding:
    5px 9px;

  border:
    1px solid
    rgba(196,255,0,.28);

  border-radius:
    6px;

  color:
    var(--nexa-lime);

  font-size:
    8px;

  letter-spacing:
    .14em;

}


/* ---------------------------------------------------------
   UPLOAD ZONE
--------------------------------------------------------- */

.upload-zone {

  min-height:
    230px;

  padding:
    40px 25px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  text-align:
    center;

  border:
    1px dashed
    rgba(196,255,0,.28);

  border-radius:
    20px;

  background:
    rgba(196,255,0,.025);

  cursor:
    pointer;

  transition:
    background .3s var(--ease),
    border-color .3s var(--ease),
    transform .3s var(--ease);

}


.upload-zone:hover,
.upload-zone.dragging {

  border-color:
    rgba(196,255,0,.7);

  background:
    rgba(196,255,0,.055);

  transform:
    translateY(-2px);

}


.upload-zone.has-file {

  min-height:
    120px;

  opacity:
    .65;

}


.upload-zone.has-file .upload-icon {

  transform:
    scale(.8);

}


.upload-icon {

  width:
    54px;

  height:
    54px;

  margin-bottom:
    17px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    rgba(196,255,0,.22);

  border-radius:
    15px;

  background:
    rgba(196,255,0,.06);

  color:
    var(--nexa-lime);

  font-size:
    25px;

  transition:
    transform .3s var(--ease);

}


.upload-zone h3 {

  font-size:
    19px;

  letter-spacing:
    -.03em;

}


.upload-zone p {

  margin-top:
    7px;

  color:
    var(--nexa-muted);

  font-size:
    12px;

}


.supported-formats {

  margin-top:
    19px;

  color:
    #555;

  font-size:
    8px;

  font-weight:
    700;

  letter-spacing:
    .17em;

}


.supported-formats span {

  margin:
    0 6px;

  color:
    var(--nexa-lime);

}


/* ---------------------------------------------------------
   FILE PANEL
--------------------------------------------------------- */

.file-panel {

  display:
    none;

  grid-template-columns:
    110px 1fr;

  gap:
    18px;

  margin-top:
    20px;

  padding:
    14px;

  border:
    1px solid var(--nexa-border);

  border-radius:
    17px;

  background:
    #080808;

  animation:
    reveal .45s var(--ease);

}


.file-panel.visible {

  display:
    grid;

}


.file-preview {

  min-height:
    110px;

  overflow:
    hidden;

  border-radius:
    12px;

  background:
    #000;

}


.file-preview img {

  width:
    100%;

  height:
    110px;

  display:
    block;

  object-fit:
    cover;

}


.file-details {

  min-width:
    0;

}


.file-top {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    15px;

}


.file-top h3 {

  max-width:
    420px;

  margin-top:
    6px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    15px;

}


.remove-button {

  width:
    32px;

  height:
    32px;

  flex-shrink:
    0;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    8px;

  background:
    transparent;

  color:
    #777;

  cursor:
    pointer;

  font-size:
    20px;

  transition:
    .25s var(--ease);

}


.remove-button:hover {

  border-color:
    #ff5f5f;

  color:
    #ff5f5f;

}


.file-meta {

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    22px;

  margin-top:
    20px;

}


.file-meta div {

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

}


.file-meta span,
.result-stat span {

  color:
    #555;

  font-size:
    8px;

  font-weight:
    700;

  letter-spacing:
    .13em;

  text-transform:
    uppercase;

}


.file-meta strong {

  font-size:
    11px;

}


/* ---------------------------------------------------------
   SETTINGS
--------------------------------------------------------- */

.settings-panel {

  display:
    none;

  margin-top:
    20px;

  padding:
    24px;

  border:
    1px solid var(--nexa-border);

  border-radius:
    19px;

  background:
    var(--nexa-charcoal);

  animation:
    reveal .45s var(--ease);

}


.settings-panel.visible {

  display:
    block;

}


.settings-header {

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    20px;

  margin-bottom:
    27px;

}


.settings-header h3 {

  margin-top:
    7px;

  font-size:
    19px;

  letter-spacing:
    -.04em;

}


.settings-state {

  padding:
    6px 9px;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    6px;

  color:
    #666;

  font-size:
    8px;

  font-weight:
    700;

  letter-spacing:
    .12em;

  text-transform:
    uppercase;

}


.settings-state.processing {

  border-color:
    rgba(196,255,0,.25);

  color:
    var(--nexa-lime);

}


/* ---------------------------------------------------------
   SETTING GROUP
--------------------------------------------------------- */

.setting-group {

  padding:
    22px 0;

  border-top:
    1px solid
    rgba(255,255,255,.06);

}


.setting-group > label,
.setting-label-row > label {

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  color:
    var(--nexa-white);

  font-size:
    12px;

  font-weight:
    700;

}


.setting-group label small {

  color:
    #555;

  font-size:
    9px;

  font-weight:
    500;

}


/* ---------------------------------------------------------
   FORMAT BUTTONS
--------------------------------------------------------- */

.format-grid {

  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    10px;

  margin-top:
    15px;

}


.format-button {

  min-height:
    72px;

  padding:
    12px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  justify-content:
    center;

  gap:
    4px;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    11px;

  background:
    #080808;

  color:
    var(--nexa-gray);

  text-align:
    left;

  cursor:
    pointer;

  transition:
    .25s var(--ease);

}


.format-button strong {

  color:
    #fff;

  font-size:
    13px;

}


.format-button span {

  color:
    #555;

  font-size:
    9px;

}


.format-button:hover {

  border-color:
    rgba(196,255,0,.35);

}


.format-button.active {

  border-color:
    rgba(196,255,0,.6);

  background:
    rgba(196,255,0,.055);

}


.format-button.active strong {

  color:
    var(--nexa-lime);

}


/* ---------------------------------------------------------
   QUALITY
--------------------------------------------------------- */

.setting-label-row {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    20px;

}


.setting-label-row > strong {

  color:
    var(--nexa-lime);

  font-size:
    14px;

}


input[type="range"] {

  width:
    100%;

  height:
    4px;

  margin-top:
    22px;

  appearance:
    none;

  border-radius:
    20px;

  background:
    #252525;

  cursor:
    pointer;

}


input[type="range"]::-webkit-slider-thumb {

  width:
    20px;

  height:
    20px;

  appearance:
    none;

  border:
    4px solid
    #101010;

  border-radius:
    50%;

  background:
    var(--nexa-lime);

  box-shadow:
    0 0 0 1px
    rgba(196,255,0,.4),

    0 0 18px
    rgba(196,255,0,.3);

}


input[type="range"]::-moz-range-thumb {

  width:
    16px;

  height:
    16px;

  border:
    3px solid
    #101010;

  border-radius:
    50%;

  background:
    var(--nexa-lime);

}


.range-labels {

  display:
    flex;

  justify-content:
    space-between;

  margin-top:
    8px;

  color:
    #444;

  font-size:
    8px;

}


/* ---------------------------------------------------------
   RESIZE
--------------------------------------------------------- */

.toggle-button {

  position:
    relative;

  width:
    42px;

  height:
    23px;

  padding:
    3px;

  border-radius:
    30px;

  background:
    #252525;

  cursor:
    pointer;

  transition:
    .25s var(--ease);

}


.toggle-button span {

  display:
    block;

  width:
    17px;

  height:
    17px;

  border-radius:
    50%;

  background:
    #666;

  transition:
    .25s var(--ease);

}


.toggle-button.active {

  background:
    rgba(196,255,0,.25);

}


.toggle-button.active span {

  transform:
    translateX(19px);

  background:
    var(--nexa-lime);

}


.resize-controls {

  display:
    none;

  align-items:
    flex-end;

  gap:
    12px;

  margin-top:
    17px;

  animation:
    reveal .35s var(--ease);

}


.resize-controls.visible {

  display:
    flex;

}


.dimension-field {

  flex:
    1;

}


.dimension-field > label {

  display:
    block;

  margin-bottom:
    7px;

  color:
    #555;

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    .1em;

  text-transform:
    uppercase;

}


.input-unit {

  display:
    flex;

  align-items:
    center;

  overflow:
    hidden;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    9px;

  background:
    #050505;

}


.input-unit input {

  width:
    100%;

  min-width:
    0;

  padding:
    12px;

  border:
    none;

  outline:
    none;

  background:
    transparent;

  color:
    #fff;

  font-size:
    12px;

}


.input-unit span {

  padding:
    0 12px;

  color:
    #444;

  font-size:
    9px;

}


.dimension-lock {

  width:
    35px;

  height:
    38px;

  flex-shrink:
    0;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    8px;

  color:
    var(--nexa-lime);

  font-size:
    13px;

  cursor:
    pointer;

}


.dimension-lock.unlocked {

  color:
    #555;

}


/* ---------------------------------------------------------
   ACTION
--------------------------------------------------------- */

.conversion-action {

  margin-top:
    23px;

}


.convert-button,
.download-button {

  position:
    relative;

  width:
    100%;

  min-height:
    60px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    12px;

  background:
    var(--nexa-gradient);

  color:
    #000;

  font-weight:
    700;

  cursor:
    pointer;

  overflow:
    hidden;

  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    opacity .25s ease;

}


.convert-button strong,
.download-button strong {

  position:
    absolute;

  right:
    20px;

  font-size:
    20px;

}


.convert-button:hover,
.download-button:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 15px 40px
    rgba(124,255,0,.14);

}


.convert-button:disabled {

  opacity:
    .6;

  cursor:
    wait;

  transform:
    none;

}


.conversion-action > p {

  margin-top:
    10px;

  text-align:
    center;

  color:
    #444;

  font-size:
    8px;

  letter-spacing:
    .05em;

}


/* ---------------------------------------------------------
   PAYWALL
--------------------------------------------------------- */

.paywall {

  display:
    none;

  align-items:
    center;

  gap:
    22px;

  margin-top:
    20px;

  padding:
    26px;

  border:
    1px solid
    rgba(196,255,0,.23);

  border-radius:
    19px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(196,255,0,.08),
      transparent 42%
    ),

    #080808;

  animation:
    reveal .45s var(--ease);

}


.paywall.visible {

  display:
    flex;

}


.paywall-icon {

  width:
    55px;

  height:
    55px;

  flex-shrink:
    0;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    rgba(196,255,0,.2);

  border-radius:
    14px;

  background:
    rgba(196,255,0,.07);

  color:
    var(--nexa-lime);

  font-size:
    22px;

}


.paywall-content {

  flex:
    1;

}


.paywall-content h3 {

  margin:
    8px 0 10px;

  font-size:
    26px;

  line-height:
    1;

  letter-spacing:
    -.06em;

}


.paywall-content h3 span {

  color:
    var(--nexa-lime);

}


.paywall-content > p {

  max-width:
    580px;

  color:
    var(--nexa-gray);

  font-size:
    12px;

  line-height:
    1.65;

}


.paywall-price {

  display:
    flex;

  align-items:
    baseline;

  gap:
    9px;

  margin:
    17px 0;

}


.paywall-price strong {

  font-size:
    23px;

}


.paywall-price span {

  color:
    #555;

  font-size:
    9px;

}


.unlock-button {

  min-height:
    46px;

  padding:
    0 17px;

  display:
    inline-flex;

  align-items:
    center;

  gap:
    20px;

  border-radius:
    9px;

  background:
    var(--nexa-gradient);

  color:
    #000;

  font-size:
    11px;

  font-weight:
    700;

  cursor:
    pointer;

  transition:
    .25s var(--ease);

}


.unlock-button:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 10px 30px
    rgba(196,255,0,.14);

}


.unlock-button strong {

  font-size:
    17px;

}


.paywall-content > small {

  display:
    block;

  margin-top:
    9px;

  color:
    #444;

  font-size:
    8px;

}


/* ---------------------------------------------------------
   RESULT
--------------------------------------------------------- */

.result-panel {

  display:
    none;

  margin-top:
    20px;

  padding:
    24px;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    19px;

  background:
    #080808;

  animation:
    reveal .5s var(--ease);

}


.result-panel.visible {

  display:
    block;

}


.result-header {

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    20px;

  margin-bottom:
    20px;

}


.result-header h3 {

  margin-top:
    7px;

  font-size:
    20px;

  letter-spacing:
    -.04em;

}


.ready-badge {

  padding:
    6px 9px;

  border:
    1px solid
    rgba(196,255,0,.25);

  border-radius:
    6px;

  color:
    var(--nexa-lime);

  font-size:
    8px;

  font-weight:
    700;

  letter-spacing:
    .14em;

}


.result-preview {

  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr) 210px;

  gap:
    18px;

}


.result-image-wrap {

  min-height:
    270px;

  display:
    grid;

  place-items:
    center;

  overflow:
    hidden;

  border:
    1px solid #1b1b1b;

  border-radius:
    13px;

  background:
    #000;

}


.result-image-wrap img {

  display:
    block;

  max-width:
    100%;

  max-height:
    390px;

  object-fit:
    contain;

}


.result-info {

  display:
    grid;

  grid-template-columns:
    1fr;

  align-content:
    start;

  gap:
    1px;

  overflow:
    hidden;

  border:
    1px solid #1b1b1b;

  border-radius:
    12px;

  background:
    #1b1b1b;

}


.result-stat {

  min-height:
    70px;

  padding:
    13px;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    5px;

  background:
    #050505;

}


.result-stat strong {

  font-size:
    12px;

}


/* ---------------------------------------------------------
   DOWNLOAD
--------------------------------------------------------- */

.download-button {

  margin-top:
    15px;

}


.secondary-button {

  width:
    100%;

  height:
    45px;

  margin-top:
    8px;

  border:
    1px solid
    var(--nexa-border);

  border-radius:
    9px;

  background:
    transparent;

  color:
    #777;

  font-size:
    10px;

  cursor:
    pointer;

  transition:
    .25s var(--ease);

}


.secondary-button:hover {

  border-color:
    rgba(196,255,0,.3);

  color:
    var(--nexa-lime);

}


/* ---------------------------------------------------------
   FEATURE STRIP
--------------------------------------------------------- */

.feature-strip {

  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  margin-top:
    30px;

  padding-top:
    21px;

  border-top:
    1px solid
    var(--nexa-border);

}


.feature {

  display:
    grid;

  grid-template-columns:
    auto 1fr;

  grid-template-rows:
    auto auto;

  column-gap:
    9px;

  padding:
    0 17px;

  border-right:
    1px solid
    var(--nexa-border);

}


.feature:last-child {

  border-right:
    none;

}


.feature > span {

  grid-row:
    span 2;

  color:
    #444;

  font-size:
    9px;

}


.feature strong {

  font-size:
    9px;

  letter-spacing:
    .11em;

}


.feature small {

  margin-top:
    4px;

  color:
    #555;

  font-size:
    8px;

  line-height:
    1.5;

}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.brand-footer {

  margin-top:
    65px;

}


.footer-line {

  height:
    1px;

  background:
    var(--nexa-border);

}


.footer-content {

  padding-top:
    19px;

  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

}


.footer-brand {

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;

}


.footer-brand strong {

  font-size:
    10px;

  letter-spacing:
    .15em;

}


.footer-brand span {

  color:
    var(--nexa-lime);

  font-size:
    7px;

  letter-spacing:
    .16em;

}


.footer-tool,
.footer-year {

  color:
    #4a4a4a;

  font-size:
    8px;

  letter-spacing:
    .14em;

}


.footer-year {

  justify-self:
    end;

}


/* ---------------------------------------------------------
   TOAST
--------------------------------------------------------- */

.toast {

  position:
    fixed;

  left:
    50%;

  bottom:
    25px;

  z-index:
    9999;

  max-width:
    calc(100% - 30px);

  padding:
    12px 17px;

  border:
    1px solid
    rgba(0,0,0,.2);

  border-radius:
    9px;

  background:
    var(--nexa-lime);

  color:
    #000;

  font-size:
    10px;

  font-weight:
    700;

  box-shadow:
    0 18px 50px
    rgba(0,0,0,.45);

  opacity:
    0;

  pointer-events:
    none;

  transform:
    translate(-50%, 12px);

  transition:
    opacity .25s var(--ease),
    transform .25s var(--ease);

}


.toast.visible {

  opacity:
    1;

  transform:
    translate(-50%, 0);

}


/* ---------------------------------------------------------
   ANIMATION
--------------------------------------------------------- */

@keyframes reveal {

  from {

    opacity:
      0;

    transform:
      translateY(12px);

  }

  to {

    opacity:
      1;

    transform:
      translateY(0);

  }

}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 760px) {

  .nav-container {

    grid-template-columns:
      auto 1fr auto;

    min-height:
      68px;

  }


  .nav-brand {

    justify-self:
      center;

  }


  .nav-status span:last-child {

    display:
      none;

  }


  .nav-status {

    justify-self:
      end;

  }


  .main-container {

    padding-top:
      58px;

  }


  .hero {

    margin-bottom:
      38px;

  }


  .hero h1 {

    font-size:
      clamp(
        44px,
        12vw,
        68px
      );

  }


  .tool-header {

    flex-direction:
      column;

    gap:
      17px;

  }


  .pro-badge {

    align-items:
      flex-start;

  }


  .result-preview {

    grid-template-columns:
      1fr;

  }


  .result-info {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .result-stat {

    min-height:
      65px;

  }

}


@media (max-width: 560px) {

  .main-container {

    padding:
      48px 15px 45px;

  }


  .converter-card {

    padding:
      18px;

    border-radius:
      22px;

  }


  .upload-zone {

    min-height:
      210px;

  }


  .file-panel {

    grid-template-columns:
      85px 1fr;

    gap:
      13px;

  }


  .file-preview,
  .file-preview img {

    height:
      85px;

  }


  .file-meta {

    gap:
      13px;

  }


  .file-meta strong {

    font-size:
      10px;

  }


  .settings-panel,
  .result-panel {

    padding:
      18px;

  }


  .format-grid {

    grid-template-columns:
      1fr;

  }


  .format-button {

    min-height:
      60px;

  }


  .resize-controls {

    align-items:
      center;

  }


  .feature-strip {

    grid-template-columns:
      1fr;

    gap:
      18px;

  }


  .feature {

    padding:
      0;

    border-right:
      none;

  }


  .footer-content {

    grid-template-columns:
      1fr;

    gap:
      12px;

  }


  .footer-year {

    justify-self:
      start;

  }


  .paywall {

    flex-direction:
      column;

    align-items:
      flex-start;

  }

}


@media (max-width: 400px) {

  .hero h1 {

    font-size:
      42px;

  }


  .upload-zone {

    padding:
      30px 15px;

  }


  .result-info {

    grid-template-columns:
      1fr;

  }


  .resize-controls {

    flex-direction:
      column;

    align-items:
      stretch;

  }


  .dimension-lock {

    width:
      100%;

  }

}