
/* 1. IMPORTING FONTS */

/* Imports two fonts from Google Fonts.
   DM Mono is used for technical-looking text, labels, and small details.
   Space Grotesk is the primary font used throughout the website.
   The font weights determine which thicknesses are available.
   If these fonts cannot load, the fallback fonts defined later will be used. */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* 2. GLOBAL COLOR AND FONT VARIABLES */

/* :root represents the highest-level element in the document.
   CSS variables declared here can be reused throughout the stylesheet.
   This makes it easier to update the website's theme without changing
   every individual color or font declaration. */
:root {
  /* Tells the browser that the website is designed for a dark color scheme.
     This can affect the appearance of browser-controlled interface elements. */
  color-scheme: dark;

  /* Main background color used throughout the website. */
  --bg: #05060a;

  /* Background color used for cards and content panels. */
  --panel: #0b0d13;

  /* Main text color, used for headings and important content. */
  --white: #f4fbff;

  /* Secondary text color, used for descriptions and supporting information. */
  --muted: #b4c1ce;

  /* Main cyan-blue accent color. */
  --blue: #00d9ff;

  /* Purple accent color used for highlights and decorative effects. */
  --purple: #b44dff;

  /* Bright green accent color used for emphasis and interactive details. */
  --green: #39ff14;

  /* Semi-transparent border color used to create consistent outlines. */
  --line: rgba(0, 217, 255, .2);

  /* Defines the monospace font stack.
     DM Mono is preferred, with Courier New and the browser's monospace font as fallbacks. */
  --mono: 'DM Mono', 'Courier New', monospace;

  /* Defines the main sans-serif font stack.
     Space Grotesk is preferred, followed by Segoe UI and the browser's sans-serif font. */
  --sans: 'Space Grotesk', 'Segoe UI', sans-serif;
}


/* 3. GLOBAL ELEMENT STYLING */

/* Applies box-sizing: border-box to every element.
   This makes width and height calculations include padding and borders.
   Without this, padding and borders would be added outside the declared dimensions,
   which can make layouts harder to control. */
* { box-sizing: border-box; }

/* Styles the overall HTML document.
   scroll-behavior: smooth makes anchor links scroll smoothly instead of jumping.
   scroll-padding-top creates space above anchor destinations.
   This is useful when navigating to sections beneath the site header. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* Sets the basic appearance of the entire webpage.
   margin: 0 removes the browser's default body margin.
   background uses the dark theme variable.
   color sets the default text color.
   font-family applies the main website font.
   overflow-x: hidden prevents unwanted horizontal scrolling. */
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--sans); overflow-x: hidden; }

/* Creates a decorative grid pattern behind the page content.
   position: fixed keeps the pattern in place while the visitor scrolls.
   inset: 0 stretches it across the entire viewport.
   z-index: -2 places it behind the main page content.
   The two linear gradients create horizontal and vertical grid lines.
   background-size controls the distance between grid lines.
   content: '' is required when using a pseudo-element.
   pointer-events: none prevents the background from interfering with clicks. */
body::before { position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(rgba(0, 217, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 77, 255, .035) 1px, transparent 1px); background-size: 64px 64px; content: ''; pointer-events: none; }

/* Removes the default underline from links and makes links inherit
   the text color of their surrounding elements. */
a { color: inherit; text-decoration: none; }

/* Makes buttons inherit the font settings of the surrounding page
   instead of using the browser's default button font. */
button { font: inherit; }


/* 4. BACKGROUND GLOW EFFECT */

/* Creates a large blurred purple glow behind the website content.
   position: fixed keeps the glow stationary while scrolling.
   top and left control its placement.
   width and height define the size of the glow.
   border-radius: 50% turns the element into a circle.
   background sets its semi-transparent purple color.
   filter: blur() softens the edges to create a glowing effect.
   pointer-events: none prevents it from blocking interaction with other elements. */
.page-glow { position: fixed; z-index: -1; top: -320px; left: 40%; width: 720px; height: 720px; border-radius: 50%; background: rgba(180, 77, 255, .2); filter: blur(130px); pointer-events: none; }


/* 5. HEADER AND BRAND STYLING */

/* Controls the main website header.
   position: relative creates a positioning reference for child elements.
   z-index: 5 places the header above lower-layer background effects.
   display: flex places the logo and navigation in a flexible horizontal layout.
   width limits the header to 1200px while keeping 32px of space on each side.
   height sets the header to 86px tall.
   align-items: center vertically centers the header contents.
   justify-content: space-between pushes the logo and navigation apart.
   margin: auto centers the header horizontally.
   border-bottom adds a subtle line beneath the header. */
.site-header { position: relative; z-index: 5; display: flex; width: min(1200px, calc(100% - 64px)); height: 86px; align-items: center; justify-content: space-between; margin: auto; border-bottom: 1px solid var(--line); }

/* Styles the brand link containing the logo and website name.
   inline-flex allows the link to sit inline while using Flexbox internally.
   align-items vertically centers the logo and text.
   gap creates space between the logo and the brand name.
   font-size, font-weight, and letter-spacing control the brand typography. */
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; letter-spacing: .12em; }

/* Sets the dimensions and rounded corners of the brand logo image. */
.brand-mark { width: 34px; height: 34px; border-radius: 10px; }

/* Changes the color of the highlighted portion of the brand name to green. */
.brand-accent { color: var(--green); }

/* Controls the desktop navigation layout.
   display: flex places navigation links in a horizontal row.
   height: 100% makes the navigation match the header height.
   align-items vertically centers the links.
   gap controls the spacing between links.
   color sets the default navigation text color.
   font-size controls the link text size. */
.navigation { display: flex; height: 100%; align-items: center; gap: 38px; color: #c1c8d3; font-size: 13px; }

/* Adds a smooth color transition when navigation links change appearance. */
.navigation a { transition: color .2s ease; }

/* Changes navigation links to white when hovered or reached using keyboard focus.
   :hover responds to mouse interaction.
   :focus-visible responds to keyboard navigation and other visible focus interactions. */
.navigation a:hover, .navigation a:focus-visible { color: white; }

/* Styles the main navigation call-to-action link.
   Padding creates space inside the link.
   The border and border-radius create its outlined button appearance.
   Color makes its text white.
   box-shadow adds a subtle purple glow around it. */
.navigation .nav-cta { padding: 11px 16px; border: 1px solid rgba(180, 77, 255, .65); border-radius: 7px; color: white; box-shadow: 0 0 18px rgba(180, 77, 255, .12); }

/* Adds spacing before the arrow in the call-to-action link
   and changes the arrow color to green. */
.nav-cta span { margin-left: 9px; color: var(--green); }

/* Gives the Discord navigation link its own cyan-blue outlined appearance.
   The padding creates internal space.
   The border defines its outline.
   border-radius rounds the corners.
   color makes the text white.
   box-shadow adds a subtle cyan glow.
   transition makes hover and focus changes appear smoothly. */
.navigation .nav-discord {
  padding: 11px 16px;
  border: 1px solid rgba(0, 217, 255, .6);
  border-radius: 7px;
  color: white;
  box-shadow: 0 0 18px rgba(0, 217, 255, .12);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

/* Changes the Discord link's appearance when hovered or keyboard-focused.
   A translucent blue background and stronger glow make the link more noticeable. */
.navigation .nav-discord:hover, .navigation .nav-discord:focus-visible {
  background: rgba(0, 217, 255, .14);
  box-shadow: 0 0 22px rgba(0, 217, 255, .25);
}

/* Adds space between the Discord text and its arrow.
   The arrow uses the main blue accent color. */
.nav-discord span {
  margin-left: 8px;
  color: var(--blue);
}

/* Hides the mobile navigation toggle button on larger screens.
   It becomes visible inside the mobile media query below. */
.menu-toggle { display: none; }


/* 6. HERO SECTION */

/* Defines the main introductory section at the top of the homepage.
   position: relative allows absolutely positioned artwork to be placed inside it.
   display: flex creates a flexible layout for the hero content.
   width limits the section to 1200px with responsive side spacing.
   min-height ensures the hero section is at least 635px tall.
   align-items vertically centers its content.
   margin centers the section horizontally.
   overflow: hidden prevents artwork or effects from extending beyond its boundaries. */
.hero { position: relative; display: flex; width: min(1200px, calc(100% - 64px)); min-height: 635px; align-items: center; margin: 0 auto; overflow: hidden; }

/* Controls the text and buttons inside the hero section.
   position: relative and z-index keep the text above background artwork.
   width: 55% reserves slightly more than half the hero area for text.
   Padding creates space above and below the content. */
.hero-content { position: relative; z-index: 1; width: 55%; padding: 55px 0 80px; }

/* Styles small introductory labels used throughout the website.
   The purple color, monospace font, small size, and letter spacing
   create a technical label appearance. */
.eyebrow { color: #c77dff; font-family: var(--mono); font-size: 10px; letter-spacing: .17em; }

/* Makes the hero eyebrow label a flex container.
   This allows its text and decorative marker to sit in one aligned row. */
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }

/* Styles the small green marker displayed beside the hero eyebrow text.
   display: inline-block allows width and height to be applied.
   box-shadow adds a green glow around the marker. */
.eyebrow-marker { display: inline-block; width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 12px rgba(57, 255, 20, .8); }

/* Removes the default top margin from headings and paragraphs.
   Individual sections can still define their own margins as needed. */
h1, h2, h3, p { margin-top: 0; }

/* Styles the main hero heading.
   The clamp() function makes the font responsive:
   48px is the minimum, 6vw is the preferred size, and 78px is the maximum.
   font-weight controls thickness.
   letter-spacing tightens the spacing between letters.
   line-height controls the distance between lines. */
.hero h1 { margin: 25px 0 20px; font-size: clamp(48px, 6vw, 78px); font-weight: 600; letter-spacing: -.075em; line-height: .99; }

/* Creates gradient-colored text.
   background defines the gradient direction and colors.
   background-clip: text restricts the background to the text shape.
   -webkit-text-fill-color: transparent makes the text itself transparent
   so the gradient behind it becomes visible. */
.gradient-text { background: linear-gradient(100deg, var(--blue) 4%, #a34dff 55%, var(--green) 100%); background-clip: text; -webkit-text-fill-color: transparent; }

/* Controls the paragraph beneath the hero heading.
   max-width prevents the text from becoming too wide.
   margin-bottom creates space before the action buttons.
   color uses the muted text color.
   font-size sets the text size.
   line-height increases readability by spacing out lines. */
.hero-copy { max-width: 430px; margin-bottom: 30px; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* Places the hero action buttons in a horizontal flex layout.
   align-items vertically centers the buttons.
   gap creates space between them. */
.hero-actions { display: flex; align-items: center; gap: 18px; }

/* Defines the shared appearance of website buttons.
   inline-flex allows the button to fit its content while using Flexbox.
   min-height ensures a consistent minimum button height.
   align-items and justify-content center the button contents.
   gap controls spacing between button text and icons.
   Padding creates horizontal space.
   border-radius rounds the corners.
   transition makes hover transformations and shadows smoother. */
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 17px; padding: 0 17px; border-radius: 6px; font-size: 12px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }

/* Moves buttons upward slightly when the visitor hovers over them.
   translateY(-2px) moves the button two pixels toward the top of the page. */
.button:hover { transform: translateY(-2px); }

/* Styles the primary call-to-action button.
   The linear gradient blends blue and purple.
   box-shadow creates two layers of colored glow around the button. */
.button-primary { background: linear-gradient(105deg, #00aef0, #8b3cff); box-shadow: 0 7px 30px rgba(0, 217, 255, .25), 0 0 20px rgba(180, 77, 255, .2); }

/* Increases the primary button's glow when hovered. */
.button-primary:hover { box-shadow: 0 9px 36px rgba(0, 217, 255, .42), 0 0 28px rgba(180, 77, 255, .3); }

/* Styles the secondary, less prominent hero button. */
.button-quiet { color: #cecedd; }

/* Creates a circular container for a small play icon.
   display: grid and place-items: center position the icon in the middle.
   The border and border-radius create the circular outline.
   The green text color highlights the icon. */
.play-icon { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(0, 217, 255, .55); border-radius: 50%; color: var(--green); font-size: 8px; }

/* Styles the small note displayed below the hero buttons.
   Flexbox aligns its contents horizontally.
   margin-top separates it from the buttons.
   The monospace font and letter spacing give it a technical appearance. */
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 54px; color: #77778e; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; }

/* Creates the short horizontal line used beside the hero note.
   Its blue background and shadow give it a glowing appearance. */
.note-rule { width: 26px; height: 1px; background: var(--blue); box-shadow: 0 0 8px rgba(0, 217, 255, .7); }

/* Positions the hero artwork independently of the text.
   position: absolute places it relative to the hero container.
   top: 50% places its top edge halfway down the hero.
   right: 0 aligns it to the right edge.
   display: grid and place-items center position the artwork in its container.
   width and max-width control its size.
   aspect-ratio: 1 keeps the container square.
   transform shifts it upward to center it vertically. */
.hero-art { position: absolute; top: 50%; right: 0; display: grid; width: 48%; max-width: 540px; aspect-ratio: 1; place-items: center; transform: translateY(-49%); }

/* Creates a blurred, layered glow behind the hero artwork.
   inset controls the distance from the container's edges.
   border-radius makes the glow circular.
   radial-gradient blends green, blue, and purple outward from the center.
   blur softens the gradient edges. */
.habitat-glow { position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle, rgba(57, 255, 20, .25), rgba(0, 217, 255, .2) 45%, rgba(180, 77, 255, .18) 68%, transparent 76%); filter: blur(22px); }

/* Styles the main hero image or mascot.
   position: relative and z-index place it above the glow effect.
   width: 100% fills the artwork container.
   height: auto preserves the image's natural proportions.
   drop-shadow adds depth and a subtle cyan glow. */
.hero-mascot { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(0, 217, 255, .24)); }

/* Positions and styles the small caption over the hero artwork.
   position: absolute allows it to sit on top of the image.
   right and bottom determine its location.
   z-index places it above the image.
   Padding, border, and background create a small label.
   The green text and shadow match the website's accent styling. */
.art-caption { position: absolute; right: 9%; bottom: 12%; z-index: 2; padding: 9px 12px; border: 1px solid rgba(57, 255, 20, .5); border-radius: 5px; background: rgba(5, 6, 10, .88); color: var(--green); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; box-shadow: 0 0 16px rgba(57, 255, 20, .12); }

/* Positions the scroll hint near the bottom-left of the hero section.
   Flexbox aligns the text and its decorative line.
   position: absolute anchors it to the hero container.
   The small font and letter spacing create a subtle instruction. */
.scroll-hint { position: absolute; bottom: 28px; left: 0; display: flex; align-items: center; gap: 12px; color: #77778e; font-family: var(--mono); font-size: 9px; letter-spacing: .15em; }

/* Creates the vertical gradient line displayed beside the scroll hint. */
.scroll-hint span { width: 1px; height: 27px; background: linear-gradient(var(--green), transparent); }


/* 7. SHARED SECTION LAYOUT */

/* Provides a consistent width and horizontal centering for major page sections.
   min(1040px, calc(100% - 64px)) means the section will never exceed 1040px,
   but it will shrink to leave 32px of space on either side on smaller screens.
   margin: 0 auto centers the section horizontally. */
.section-wrap { width: min(1040px, calc(100% - 64px)); margin: 0 auto; }

/* Adds space above the World section to separate it from the hero. */
.world { padding-top: 112px; }

/* Applies shared heading styles to section headings, the Adventure heading,
   and the FAQ heading.
   clamp() makes the text responsive between 32px and 48px.
   font-weight sets a medium thickness.
   letter-spacing tightens the text.
   line-height controls the distance between heading lines. */
.section-heading h2, .adventure h2, .faq-heading h2 { margin: 17px 0 0; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.055em; line-height: 1.12; }

/* Changes the color of specially highlighted section heading text. */
.muted-heading { color: #5fdfff; }


/* 8. WORLD FEATURE GRID */

/* Creates the grid containing the World feature cards.
   The first column takes up 1.25 times the space of each remaining column.
   gap creates consistent spacing between grid items.
   margin-top separates the cards from the section heading. */
.world-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; margin-top: 43px; }

/* Styles the introductory paragraph inside the World grid.
   max-width limits the line length.
   align-self: center vertically aligns this item within its grid row.
   padding-right creates space before the next grid item.
   line-height improves readability. */
.section-intro { max-width: 220px; align-self: center; padding-right: 22px; color: var(--muted); font-size: 13px; line-height: 1.85; }

/* Defines the appearance of individual feature cards.
   position: relative allows child elements to be positioned inside the card.
   min-height ensures all cards have a minimum height.
   padding creates internal spacing.
   border and border-radius define the card outline and corners.
   background uses a gradient to create depth.
   transition smooths changes to the border and position during hover. */
.feature-card { position: relative; min-height: 210px; padding: 25px 20px 20px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(16, 20, 33, .9), rgba(7, 9, 15, .95)); transition: border-color .2s ease, transform .2s ease; }

/* Changes the feature card when the visitor hovers over it.
   translateY(-4px) moves the card upward.
   The border becomes green and a subtle green shadow appears. */
.feature-card:hover { transform: translateY(-4px); border-color: rgba(57, 255, 20, .65); box-shadow: 0 0 22px rgba(57, 255, 20, .1); }

/* Positions the feature number in the top-right corner of its card.
   position: absolute uses the feature card as its positioning reference. */
.feature-number { position: absolute; top: 24px; right: 20px; color: var(--blue); font-family: var(--mono); font-size: 9px; }

/* Styles the icon displayed in each feature card.
   display: block allows the icon to occupy its own line.
   margin-bottom creates space before the card heading.
   color and text-shadow give the icon its purple glow. */
.feature-icon { display: block; margin-bottom: 25px; color: var(--purple); font-size: 21px; text-shadow: 0 0 16px rgba(180, 77, 255, .7); }

/* Applies shared typography to feature card headings and adventure step headings. */
.feature-card h3, .step h3 { margin-bottom: 8px; font-size: 14px; font-weight: 500; }

/* Styles the descriptive paragraphs inside feature cards.
   Removes the bottom margin, uses muted text, and controls size and line spacing. */
.feature-card p { margin-bottom: 0; color: #9190a5; font-size: 11px; line-height: 1.7; }


/* 9. ADVENTURE SECTION */

/* Creates a two-column layout for the Adventure section.
   The first column uses 0.9 fractions of the available space.
   The second column uses 1.1 fractions.
   gap controls the space between the columns.
   align-items vertically centers the two columns.
   padding-top separates the section from the content above it. */
.adventure { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; padding-top: 150px; }

/* Sets a specific font size for the Adventure section heading. */
.adventure h2 { font-size: 39px; }

/* Styles paragraphs directly inside the Adventure copy container.
   max-width limits the text width.
   margin controls the space above and below the paragraph.
   The muted color and line-height make the text easier to read. */
.adventure-copy > p { max-width: 320px; margin: 19px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Styles text links using the green accent color. */
.text-link { color: var(--green); font-size: 12px; }

/* Adds space between text-link content and an arrow or other span element. */
.text-link span { margin-left: 8px; }

/* Adds a top border above the list of adventure steps. */
.steps { border-top: 1px solid var(--line); }

/* Creates a grid layout for each individual adventure step.
   The first column is reserved for the step number.
   The second column expands to hold the step description.
   The third column is reserved for the arrow.
   gap creates spacing between these columns.
   align-items: start aligns content at the top of each row.
   Padding creates vertical spacing between steps.
   border-bottom separates each step. */
.step { display: grid; grid-template-columns: 36px 1fr 20px; gap: 15px; align-items: start; padding: 22px 4px; border-bottom: 1px solid var(--line); }

/* Styles the numbered labels for each adventure step.
   padding-top aligns the number with the step heading.
   The monospace font and blue color distinguish it from the description. */
.step-index { padding-top: 2px; color: var(--blue); font-family: var(--mono); font-size: 10px; }

/* Removes the top margin from adventure step headings. */
.step h3 { margin-top: 0; }

/* Styles the explanatory text inside each adventure step.
   Removes the bottom margin so the row spacing is controlled by its container.
   Muted color and small font size make it secondary to the heading. */
.step p { margin-bottom: 0; color: #8e8da3; font-size: 11px; line-height: 1.65; }

/* Styles the arrow at the end of each adventure step. */
.step-arrow { color: var(--green); font-size: 14px; }


/* 10. SERVER JOIN SECTION */

/* Adds space above the server joining section. */
.join-section { padding-top: 142px; }

/* Creates the main panel encouraging visitors to join the server.
   position: relative allows the decorative join-orb to be positioned inside it.
   overflow: hidden clips decorative elements that extend beyond the panel.
   Padding creates space around the content.
   Border and border-radius define the panel outline.
   Multiple background gradients create layered lighting effects.
   text-align: center centers the content inside the panel. */
.join-panel { position: relative; overflow: hidden; padding: 73px 24px 48px; border: 1px solid rgba(180, 77, 255, .45); border-radius: 12px; background: radial-gradient(ellipse at 50% 0%, rgba(0, 217, 255, .18), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(180, 77, 255, .13), transparent 50%), linear-gradient(150deg, rgba(14, 17, 29, .96), rgba(5, 6, 10, .98)); text-align: center; }

/* Positions the circular logo container above the join panel content.
   position: absolute places it relative to the join panel.
   top: -66px makes part of the circle extend above the panel.
   left: 50% and translateX(-50%) center it horizontally.
   display: grid and place-items center center its image.
   The border, background, and box-shadow create a glowing circular frame. */
.join-orb { position: absolute; top: -66px; left: 50%; display: grid; width: 98px; height: 98px; place-items: center; border: 1px solid rgba(0, 217, 255, .7); border-radius: 50%; background: #080a10; box-shadow: 0 0 40px rgba(0, 217, 255, .3), 0 0 58px rgba(180, 77, 255, .2); transform: translateX(-50%); }

/* Sets the dimensions and rounded corners of the image inside the join orb. */
.join-orb img { width: 63px; height: 63px; border-radius: 18px; }

/* Styles the main heading inside the join panel.
   clamp() allows the heading to resize between 32px and 46px.
   The negative letter spacing creates a tighter heading appearance. */
.join-panel h2 { margin: 16px 0 13px; font-size: clamp(32px, 4vw, 46px); font-weight: 500; letter-spacing: -.06em; line-height: 1.12; }

/* Styles direct paragraph children of the join panel,
   excluding paragraphs with the edition-note class.
   This allows the main description and the edition note to have different styling. */
.join-panel > p:not(.edition-note) { margin-bottom: 25px; color: var(--muted); font-size: 12px; }

/* Creates the container displaying the Minecraft server address and copy button.
   display: flex places the address and button beside one another.
   max-width limits the overall width.
   min-height ensures enough room for the contents.
   align-items vertically centers the contents.
   justify-content: space-between pushes the address and button apart.
   gap prevents the contents from touching.
   margin: 0 auto centers the container.
   Padding creates space inside the container.
   Border, background, and shadow create its outlined appearance. */
.server-address { display: flex; max-width: 480px; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 10px 12px 10px 17px; border: 1px solid rgba(0, 217, 255, .42); border-radius: 7px; background: rgba(3, 5, 9, .88); box-shadow: 0 0 24px rgba(0, 217, 255, .08); text-align: left; }

/* Styles the small label associated with the server address.
   Flexbox aligns the label's icon and text.
   gap creates spacing between them.
   The monospace font and letter spacing create a technical label appearance. */
.address-label { display: flex; align-items: center; gap: 8px; color: #aebaca; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }

/* Styles the actual server address displayed inside a code element.
   The monospace font helps distinguish the address from regular text. */
.server-address code { color: #e6e5f5; font-family: var(--mono); font-size: 13px; }

/* Styles the button used to copy the server address.
   display: flex aligns the button contents.
   min-width and min-height establish its minimum dimensions.
   align-items and justify-content center the icon and text.
   border and border-radius define its appearance.
   background and color use the purple accent.
   cursor: pointer changes the mouse cursor to indicate that it is clickable. */
.copy-button { display: flex; min-width: 72px; min-height: 36px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(180, 77, 255, .7); border-radius: 5px; background: rgba(180, 77, 255, .2); color: #e7c7ff; cursor: pointer; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }

/* Changes the copy button's background and adds a stronger purple glow on hover. */
.copy-button:hover { background: rgba(180, 77, 255, .38); box-shadow: 0 0 16px rgba(180, 77, 255, .26); }

/* Styles the small edition information beneath the server address.
   margin creates space above the note.
   The muted color and small font size keep it visually secondary. */
.edition-note { margin: 13px 0 0; color: #77778d; font-size: 10px; }

/* Adds horizontal padding around spans inside the edition note
   and gives those spans a slightly different purple color. */
.edition-note span { padding: 0 5px; color: #a18dff; }


/* 11. FAQ SECTION */

/* Creates a two-column layout for the FAQ section.
   The first column uses 0.8 fractions of the available space.
   The second column uses 1.2 fractions.
   gap creates space between the heading and the questions.
   Padding separates the FAQ from surrounding sections. */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-top: 140px; padding-bottom: 120px; }

/* Sets the FAQ heading to a specific font size. */
.faq-heading h2 { font-size: 38px; }

/* Adds a bottom border to every FAQ details element.
   The details element is an HTML element that can expand and collapse its content. */
.faq-list details { border-bottom: 1px solid var(--line); }

/* Adds a matching top border to the first FAQ item,
   creating an outline around the entire question list. */
.faq-list details:first-child { border-top: 1px solid var(--line); }

/* Styles the clickable summary or question for each FAQ item.
   display: flex aligns the question and its expand/collapse icon.
   min-height creates a consistent clickable row height.
   justify-content: space-between pushes the question and icon apart.
   gap keeps them from touching.
   cursor: pointer indicates that the question is interactive.
   list-style: none removes the browser's default disclosure marker. */
.faq-list summary { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 20px; color: #deddea; cursor: pointer; list-style: none; font-size: 12px; }

/* Hides the default disclosure marker in WebKit-based browsers.
   This allows the website to use its own custom expand/collapse icon. */
.faq-list summary::-webkit-details-marker { display: none; }

/* Creates a fixed-size container for the custom FAQ icon.
   position: relative allows its pseudo-elements to be positioned inside it.
   flex: 0 0 14px prevents the icon from growing or shrinking. */
.faq-list summary span { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }

/* Creates the two lines that form the FAQ plus icon.
   ::before and ::after generate visual elements without adding extra HTML.
   position: absolute places the lines inside the icon container.
   The first line is horizontal.
   The second line is rotated vertically.
   background and box-shadow give the lines a glowing green appearance.
   transition makes the rotation animate smoothly. */
.faq-list summary span::before, .faq-list summary span::after { position: absolute; top: 6px; left: 2px; width: 10px; height: 1px; background: var(--green); box-shadow: 0 0 8px rgba(57, 255, 20, .6); content: ''; transition: transform .2s ease; }

/* Rotates the second line by 90 degrees.
   Together, the horizontal and vertical lines create a plus sign. */
.faq-list summary span::after { transform: rotate(90deg); }

/* When a details element is open, this rule rotates the second line back to 0 degrees.
   This turns the plus icon into a horizontal minus icon. */
.faq-list details[open] summary span::after { transform: rotate(0); }

/* Styles the answer paragraph inside each FAQ item.
   max-width limits the answer's line length.
   Negative top margin moves the answer slightly closer to the question.
   The right margin prevents the text from running directly beneath the icon.
   line-height improves readability. */
.faq-list details p { max-width: 470px; margin: -2px 30px 19px 0; color: #9190a5; font-size: 11px; line-height: 1.8; }


/* 12. FOOTER */

/* Controls the layout of the website footer.
   display: flex arranges the logo, creator credit, and back-to-top link in a row.
   width matches the main header's maximum width and side spacing.
   min-height establishes the minimum footer height.
   align-items vertically centers its contents.
   justify-content: space-between distributes the contents across the row.
   margin centers the footer horizontally.
   border-top separates it from the page content above. */
.site-footer { display: flex; width: min(1200px, calc(100% - 64px)); min-height: 82px; align-items: center; justify-content: space-between; margin: 0 auto; border-top: 1px solid var(--line); }

/* Makes the footer brand name smaller than the main header brand name. */
.footer-brand { font-size: 11px; }

/* Reduces the footer logo dimensions to fit the smaller footer layout. */
.footer-brand .brand-mark { width: 29px; height: 29px; }

/* Applies shared styling to the creator credit and back-to-top link.
   The muted color and small monospace font create a subtle footer appearance. */
.footer-tagline, .back-top { color: #94a4b4; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }

/* Adds spacing before the back-to-top arrow and changes its color to green. */
.back-top span { margin-left: 8px; color: var(--green); font-size: 13px; }


/* 13. TOAST NOTIFICATION */

/* Defines the appearance and initial hidden state of toast messages.
   position: fixed keeps the notification in the same place on the screen.
   right and bottom position it near the lower-right corner.
   z-index: 10 places it above most other page content.
   Padding creates space inside the notification.
   Border, border-radius, and background define its appearance.
   opacity: 0 makes it invisible initially.
   pointer-events: none prevents the invisible notification from intercepting clicks.
   translateY(8px) starts it slightly below its final position.
   transition animates opacity and position changes smoothly. */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; padding: 12px 16px; border: 1px solid rgba(0, 217, 255, .65); border-radius: 6px; background: #0b1118; color: white; box-shadow: 0 0 22px rgba(0, 217, 255, .2); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }

/* Displays the toast notification when JavaScript adds the is-visible class.
   opacity: 1 makes it visible.
   translateY(0) moves it into its normal position.
   This works with the transition defined in the base .toast rule. */
.toast.is-visible { opacity: 1; transform: translateY(0); }


/* 14. RESPONSIVE LAYOUT FOR MEDIUM SCREENS */

/* This media query applies its styles when the viewport is 900px wide or narrower.
   It adjusts the layout for tablets and smaller desktop windows. */
@media (max-width: 900px) {

  /* Reduces the minimum hero section height for medium-sized screens. */
  .hero { min-height: 590px; }

  /* Gives the hero text slightly more horizontal space. */
  .hero-content { width: 59%; }

  /* Moves the hero artwork slightly beyond the right edge
     and makes it partially transparent so the text remains prominent. */
  .hero-art { right: -8%; width: 50%; opacity: .8; }

  /* Changes the World grid from four columns to three equal columns.
     repeat(3, 1fr) creates three columns of equal available width. */
  .world-grid { grid-template-columns: repeat(3, 1fr); }

  /* Makes the introductory text span all three grid columns.
     1 / -1 means the item begins at the first grid line and ends at the last.
     max-width allows the text to use more space at this screen size.
     Padding is removed so it aligns with the grid. */
  .section-intro { grid-column: 1 / -1; max-width: 570px; padding: 0; }

  /* Reduces the space between the two Adventure columns. */
  .adventure { gap: 48px; }

  /* Reduces the horizontal gap between the FAQ heading and its questions. */
  .faq { gap: 42px; }
}


/* 15. RESPONSIVE LAYOUT FOR MOBILE SCREENS */

/* This media query applies when the viewport is 650px wide or narrower.
   These styles change the desktop layout into a mobile-friendly layout. */
@media (max-width: 650px) {

  /* Reduces the scroll offset to match the shorter mobile header. */
  html { scroll-padding-top: 72px; }

  /* Adjusts the mobile header width and height.
     The 40px total width subtraction leaves 20px of space on each side. */
  .site-header { width: calc(100% - 40px); height: 72px; }

  /* Displays the mobile navigation button.
     display: grid allows its two icon lines to be positioned vertically.
     width and height establish the button dimensions.
     align-content and justify-items center its contents.
     gap controls the space between the two lines.
     Border and border-radius style the button.
     background: transparent keeps the button background clear.
     cursor: pointer indicates that the button is interactive. */
  .menu-toggle { display: grid; width: 40px; height: 40px; align-content: center; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; }

  /* Styles the two horizontal lines inside the mobile menu button.
     Width and height determine their dimensions.
     transition allows their positions and rotation to animate. */
  .menu-toggle span { width: 16px; height: 1px; background: #dedcf3; transition: transform .2s ease; }

  /* When aria-expanded is true, rotates the first menu line 45 degrees.
     translateY moves the line down slightly to help form an X shape. */
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }

  /* Rotates the second menu line in the opposite direction.
     Together, these two lines create an X-shaped close icon when the menu is open. */
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  /* Changes the desktop navigation into a hidden mobile dropdown.
     position: absolute allows it to appear below the header without
     taking up space in the normal page layout.
     top, right, and left control its position.
     display: none hides it until JavaScript adds the is-open class.
     height: auto allows it to grow according to its contents.
     align-items: stretch makes links fill the available width.
     gap: 0 removes the desktop link spacing.
     Padding, border, background, and box-shadow style the dropdown. */
  .navigation { position: absolute; top: 63px; right: 0; left: 0; display: none; height: auto; align-items: stretch; gap: 0; padding: 8px 16px 15px; border: 1px solid var(--line); border-radius: 8px; background: #090b11; box-shadow: 0 16px 40px rgba(0, 0, 0, .65), 0 0 22px rgba(0, 217, 255, .12); }

  /* Displays the mobile navigation when JavaScript adds the is-open class.
     flex-direction: column stacks the navigation links vertically. */
  .navigation.is-open { display: flex; flex-direction: column; }

  /* Increases the vertical padding around mobile navigation links
     to make them easier to tap on a touchscreen. */
  .navigation a { padding: 13px 4px; }

  /* Adds extra spacing above the mobile call-to-action link
     and increases its internal padding. */
  .navigation .nav-cta { margin-top: 6px; padding: 12px; }

  /* Changes the hero section to use the mobile page width.
     Reduces the minimum height and aligns the text toward the top. */
  .hero { width: calc(100% - 40px); min-height: 710px; align-items: flex-start; }

  /* Makes the hero text use the full available width.
     Adds more space above the content to suit the mobile layout. */
  .hero-content { width: 100%; padding-top: 75px; }

  /* Uses a responsive heading size.
     48px is the minimum, 13vw is the preferred size,
     and 68px is the maximum. */
  .hero h1 { font-size: clamp(48px, 13vw, 68px); }

  /* Adjusts the hero paragraph width and font size for mobile screens. */
  .hero-copy { max-width: 390px; font-size: 13px; }

  /* Changes the hero buttons from a horizontal row into a vertical column.
     align-items: flex-start aligns them to the left.
     flex-direction: column stacks them.
     gap controls the vertical spacing between buttons. */
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 6px; }

  /* Removes some of the left padding from the secondary hero button
     so it aligns more closely with the other content. */
  .button-quiet { padding-left: 0; }

  /* Reduces the space above the hero note on mobile screens. */
  .hero-note { margin-top: 28px; }

  /* Repositions the hero artwork beneath the main hero text.
     top: auto removes its desktop vertical positioning.
     right and bottom place it near the lower-right area.
     width uses the smaller of 84vw or 370px.
     opacity controls its visibility.
     transform: none removes the desktop vertical translation. */
  .hero-art { top: auto; right: 0; bottom: 12px; width: min(84vw, 370px); opacity: .95; transform: none; }

  /* Hides the scroll hint on mobile to reduce visual clutter. */
  .scroll-hint { display: none; }

  /* Changes shared section width to leave 20px of space on each side. */
  .section-wrap { width: calc(100% - 40px); }

  /* Reduces the space above the World section. */
  .world { padding-top: 75px; }

  /* Sets a consistent mobile heading size for major section headings. */
  .section-heading h2, .adventure h2, .faq-heading h2 { font-size: 34px; }

  /* Stacks the World feature cards into one column.
     gap controls vertical spacing between cards.
     margin-top reduces the distance from the section heading. */
  .world-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }

  /* Resets the introductory text to a normal single-column grid position.
     Adds a small amount of space beneath the introduction. */
  .section-intro { grid-column: auto; margin-bottom: 5px; }

  /* Hides the hero note on mobile screens.
     This rule takes precedence over the earlier mobile .hero-note margin rule
     because it appears later in the stylesheet. */
  .hero-note { display: none; }

  /* Reduces the minimum height of feature cards on mobile. */
  .feature-card { min-height: 160px; }

  /* Reduces the space beneath feature icons to fit the shorter cards. */
  .feature-icon { margin-bottom: 16px; }

  /* Changes the Adventure section from two columns to one.
     Reduces the gap between its stacked content.
     padding-top decreases the space above the section. */
  .adventure { grid-template-columns: 1fr; gap: 34px; padding-top: 92px; }

  /* Sets the Adventure heading to the mobile heading size. */
  .adventure h2 { font-size: 34px; }

  /* Reduces the space above the server joining section. */
  .join-section { padding-top: 90px; }

  /* Reduces the join panel's internal spacing for smaller screens. */
  .join-panel { padding: 66px 16px 32px; }

  /* Sets the join panel heading to a mobile-friendly size. */
  .join-panel h2 { font-size: 34px; }

  /* Changes the server address container into a two-column grid.
     This makes room for the address label above the address and copy button. */
  .server-address { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

  /* Makes the address label span both grid columns.
     This places it on its own row above the address and button. */
  .address-label { grid-column: 1 / -1; }

  /* Reduces the server address text size to prevent it from overflowing. */
  .server-address code { font-size: 11px; }

  /* Changes the FAQ layout into a single column.
     Reduces the gap between the heading and questions.
     Adjusts the top and bottom padding for mobile screens. */
  .faq { grid-template-columns: 1fr; gap: 25px; padding-top: 90px; padding-bottom: 80px; }

  /* Adjusts the footer width and minimum height for mobile screens. */
  .site-footer { width: calc(100% - 40px); min-height: 74px; }

  /* Hides the creator credit on mobile to keep the footer from becoming crowded. */
  .footer-tagline { display: none; }
}


/* 16. ACCESSIBILITY: REDUCED MOTION */

/* Detects whether the visitor has enabled the reduced-motion preference
   in their operating system or browser.
   This is important for people who experience discomfort from animations
   or excessive motion.
   scroll-behavior: auto disables smooth scrolling.
   animation-duration: .01ms makes animations effectively instantaneous.
   animation-iteration-count: 1 prevents animations from repeatedly playing.
   transition-duration: .01ms minimizes animated transitions.
   !important ensures these accessibility settings override normal animation rules. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* 17. FINAL NAVIGATION BUTTON ADJUSTMENTS */

/* Applies shared spacing and padding to the Discord and main call-to-action links.
   These declarations appear after the media queries, so they override earlier
   margin-top and padding values for these links when the selectors match.
   Because this rule is not inside a media query, it applies at all screen sizes. */
.navigation .nav-discord, .navigation .nav-cta {
    margin-top: 6px;
    padding: 12px;
}
